/* ============================================
   Auth Login Page Styles
   PayNow.Web - Unified Theme Extension
   ============================================ */

/* Login Background */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

body.auth-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/Public/5040007.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    z-index: -1;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    /* Above -1 background, below content */
    pointer-events: none;
    /* Allow clicking through to background/content if needed, though login card is above */
}

/* Glassmorphism Login Card */
.login-card {
    max-width: 420px;
    width: 100%;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.5);
}

/* Logo Styling */
.logo-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Form Icon */
.form-icon {
    color: rgba(255, 255, 255, 0.8);
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

/* Input Controls */
.auth-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    border-radius: 12px;
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.1) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Labels */
.auth-label {
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

/* Password Toggle */
.password-toggle {
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #ffffff;
}

/* Auth Button */
.btn-auth {
    background: linear-gradient(135deg, #4a90e2 0%, #7eb0d5 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.btn-auth:hover {
    background: linear-gradient(135deg, #3a80d2 0%, #6ea0c5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loader */
.auth-loader {
    display: none;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-auth:disabled .button-text {
    display: none;
}

.btn-auth:disabled .auth-loader {
    display: inline-block;
}

/* Title */
.auth-title {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .login-card {
        max-width: 90%;
        padding: 2rem;
    }

    .logo-img {
        width: 80px;
        height: 80px;
    }

    .auth-input {
        font-size: 0.95rem;
    }

    .auth-label {
        font-size: 0.9rem;
    }

    .btn-auth {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .logo-img {
        width: 70px;
        height: 70px;
    }

    .auth-input {
        padding-left: 2.5rem;
        font-size: 0.9rem;
    }

    .form-icon {
        font-size: 0.9rem;
    }

    .auth-label {
        font-size: 0.85rem;
    }

    .btn-auth {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}