/* ==========================================================================
   Luxury Minimalist Cinematic Login - Antigravity Signature Taste
   ========================================================================== */

.login-page-wrapper {
    min-height: 80vh;
    position: relative;
    z-index: 10;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 10px;
}

/* Ambient backlight behind the container to create a cinematic glow */
.login-container {
    width: 100%;
    max-width: 460px;
    position: relative;
    animation: loginCinematicFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-container::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(0, 196, 204, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

@keyframes loginCinematicFade {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.97);
        filter: blur(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Elegant Floating Card */
.login-card {
    background: rgba(10, 18, 26, 0.55);
    backdrop-filter: blur(35px) saturate(220%);
    -webkit-backdrop-filter: blur(35px) saturate(220%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Top highlight */
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card:hover {
    border-color: rgba(0, 196, 204, 0.35);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.7),
                0 0 35px rgba(0, 196, 204, 0.12);
    transform: translateY(-5px);
}

/* Delicate Fine-Lined Header */
.login-header {
    padding: 45px 35px 25px;
    text-align: center;
    position: relative;
}

.logo-wrapper {
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
}

.logo-icon {
    width: 68px;
    height: 68px;
    background: rgba(0, 196, 204, 0.08);
    border: 1px solid rgba(0, 196, 204, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-icon i {
    font-size: 28px;
    color: #00c4cc;
    text-shadow: 0 0 15px rgba(0, 196, 204, 0.5);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card:hover .logo-icon {
    background: rgba(0, 196, 204, 0.15);
    border-color: #00c4cc;
    box-shadow: 0 0 25px rgba(0, 196, 204, 0.4);
    transform: rotate(15deg) scale(1.05);
}

.login-card:hover .logo-icon i {
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 196, 204, 0.8);
}

.login-header h1 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

/* Exquisite Form Controls */
.login-body {
    padding: 25px 35px 45px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
}

/* Elegant Slim Inputs */
.input-wrapper input {
    width: 100%;
    background: rgba(5, 10, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px; /* Fully rounded elegant pill inputs */
    padding: 14px 20px 14px 50px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html[dir="rtl"] .input-wrapper input {
    padding: 14px 50px 14px 20px;
}

.input-wrapper input:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(5, 10, 18, 0.6);
}

.input-wrapper input:focus {
    outline: none;
    border-color: #00c4cc;
    background: rgba(0, 196, 204, 0.03);
    box-shadow: 0 0 25px rgba(0, 196, 204, 0.15);
}

/* Fine-lined elegant Icons */
.input-wrapper i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 2;
}

html[dir="rtl"] .input-wrapper i {
    right: 20px;
}

html[dir="ltr"] .input-wrapper i {
    left: 20px;
}

.input-wrapper input:focus + i {
    color: #00c4cc;
    transform: translateY(-50%) scale(1.1);
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* Exquisite Options Row */
.options-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.82rem;
    font-weight: 600;
}

.remember-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.3s;
}

.remember-wrapper:hover {
    color: rgba(255, 255, 255, 0.8);
}

.remember-wrapper input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #00c4cc;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
}

.forgot-link {
    color: rgba(0, 196, 204, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #00e5ff;
}

/* High-End Minimal Button with Glass reflection */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #00c4cc 0%, #007b82 100%);
    border: none;
    border-radius: 50px; /* Elegant pill button */
    padding: 14px 30px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 196, 204, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-login::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(30deg);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    pointer-events: none;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 196, 204, 0.45);
    filter: brightness(1.05);
}

.btn-login:hover::after {
    left: 140%;
    opacity: 1;
}

.btn-login:active {
    transform: translateY(-1px);
}

/* Minimalist Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 25px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* Unified Link Styling */
.register-link {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
}

.register-link a {
    color: #00c4cc;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.register-link a:hover {
    color: #00e5ff;
    gap: 7px;
}

/* Validation Errors */
.error-summary {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 12px 18px;
    margin-bottom: 25px;
    font-size: 0.8rem;
    color: #ff5f5f;
}

.error-summary ul {
    margin: 0;
    padding-right: 18px;
}

.field-error {
    font-size: 0.76rem;
    color: #ff5f5f;
    margin-top: 6px;
    display: block;
    font-weight: 600;
}

/* Loading Spin */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-login.loading i {
    animation: loginSpin 1s linear infinite;
}

@keyframes loginSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 576px) {
    .login-container {
        margin: 10px;
    }
    .login-header {
        padding: 35px 25px 20px;
    }
    .login-body {
        padding: 20px 25px 35px;
    }
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    .logo-icon i {
        font-size: 24px;
    }
    .login-header h1 {
        font-size: 1.45rem;
    }
}
