/* ============================================
   Neomorphism Auth Login Styles
   PayNow.Web - Premium Fintech Aesthetic
   ============================================ */

:root {
    --bg-color: #e0e5ec;
    --neu-white: #ffffff;
    --neu-gray: #a3b1c6;
    --primary-cyan: #00e5ff;
    --primary-blue: #007bff;
    --shadow-light: rgba(255, 255, 255, 0.8);
    --shadow-dark: rgba(163, 177, 198, 0.6);
    --inset-light: rgba(255, 255, 255, 0.5);
    --inset-dark: rgba(163, 177, 198, 0.5);
}

body.auth-page {
    background-color: var(--bg-color);
    margin: 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* Animated Background elements */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e5ec 0%, #d1d9e6 100%);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 15px 15px 30px rgba(163, 177, 198, 0.4), -15px -15px 30px rgba(255, 255, 255, 0.8);
    width: 220px;
    height: 140px;
    z-index: 0;
    animation: float 25s infinite linear;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.mock-screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

.mock-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00c853;
}

.mock-chart {
    height: 60px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 5px 0;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-blue), var(--primary-cyan));
    border-radius: 4px;
    animation: barGrow 3s infinite ease-in-out alternate;
}

@keyframes barGrow {
    0% { height: 20%; }
    100% { height: 80%; }
}

.mock-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mock-item {
    height: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    width: 100%;
}

.mock-item.short { width: 60%; }

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, -30px) rotate(3deg); }
    50% { transform: translate(100px, 40px) rotate(-2deg); }
    75% { transform: translate(40px, 80px) rotate(4deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.fc-1 { top: 10%; left: 5%; animation-duration: 30s; }
.fc-2 { top: 55%; left: 10%; animation-duration: 22s; animation-delay: -3s; }
.fc-3 { top: 15%; right: 8%; animation-duration: 28s; animation-delay: -7s; }
.fc-4 { bottom: 10%; right: 5%; animation-duration: 25s; animation-delay: -12s; }
.fc-5 { top: 40%; right: 20%; animation-duration: 35s; }

/* Page Loader override */
.page-loader {
    display: none !important;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Neomorphic Card - Larger */
.login-card {
    max-width: 520px;
    width: 100%;
    padding: 4rem;
    background: var(--bg-color);
    border-radius: 50px;
    box-shadow: 25px 25px 50px #bebebe, -25px -25px 50px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-card:hover {
    transform: translateY(-10px);
}

.auth-title {
    color: #444;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #777;
    font-size: 0.95rem;
}

/* Neomorphic Inputs */
.auth-label {
    color: #555;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: block;
    padding-left: 5px;
}

.auth-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.auth-input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-left: 3rem;
    background: var(--bg-color);
    border: none;
    border-radius: 20px;
    box-shadow: inset 6px 6px 12px var(--inset-dark), inset -6px -6px 12px var(--inset-light);
    color: #444;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    box-shadow: inset 4px 4px 8px var(--inset-dark), inset -4px -4px 8px var(--inset-light), 0 0 8px rgba(0, 229, 255, 0.2);
}

.form-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neu-gray);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.auth-input:focus + .form-icon,
.auth-input:not(:placeholder-shown) + .form-icon {
    color: var(--primary-blue);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neu-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-blue);
}

/* Neomorphic Button */
.btn-auth {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: var(--bg-color);
    border: none;
    border-radius: 20px;
    box-shadow: 10px 10px 20px #bebebe, -10px -10px 20px #ffffff;
    color: #444;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-auth:hover {
    box-shadow: 5px 5px 10px #bebebe, -5px -5px 10px #ffffff;
    color: var(--primary-blue);
}

.btn-auth:active {
    box-shadow: inset 5px 5px 10px #bebebe, inset -5px -5px 10px #ffffff;
    transform: scale(0.98);
}

.btn-auth .bi {
    font-size: 1.2rem;
}

.logo-container {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    background: var(--bg-color);
    border-radius: 30px;
    box-shadow: 8px 8px 16px #bebebe, -8px -8px 16px #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

/* Footer */
.auth-footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #999;
}

/* Loader Styling */
.auth-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-auth:disabled .button-text { display: none; }
.btn-auth:disabled .auth-loader { display: block; }

/* Page Loader override */
.page-loader {
    background: var(--bg-color) !important;
}

.loader-logo {
    box-shadow: 10px 10px 20px #bebebe, -10px -10px 20px #ffffff;
    border-radius: 20px;
}
