/* CSS Custom Property for Animation */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.login-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('/auth/assets/images/ai-banner.jpg');
    position: relative;
    overflow: hidden;
}

/* Animated Background Circles */
body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

body::before {
    width: 500px;
    height: 500px;
    background: rgba(32, 105, 150, 0.3);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

body::after {
    width: 400px;
    height: 400px;
    background: rgba(1, 67, 125, 0.2);
    bottom: -100px;
    right: -100px;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
}

/* Login Card with Animated Border */
.login-card {
    width: 420px;
    padding: 50px 40px;
    background: #206996;
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideIn 0.6s ease-out;
    z-index: 1;
}

/* Border with subtle glow */
.login-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    border: 2px solid rgba(100, 200, 255, 0.3);
    pointer-events: none;
    z-index: 0;
}

/* Animated Trails - ULTRA SUBTLE & PROFESSIONAL */
.trail {
    width: 60px;
    aspect-ratio: 2 / 1;
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: radial-gradient(ellipse 100% 100% at right,
            rgba(130, 210, 255, 0.25) 0%,
            rgba(110, 200, 255, 0.15) 30%,
            rgba(100, 190, 255, 0.08) 60%,
            transparent 85%);
    offset-path: border-box;
    offset-anchor: 100% 50%;
    filter: blur(16px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

/* Trail 1 - starts from top */
.trail-1 {
    animation: trailMove 10s infinite linear;
}

/* Trail 2 - starts from opposite side (180deg offset) */
.trail-2 {
    animation: trailMove 10s infinite linear;
    animation-delay: 5s;
}

@keyframes trailMove {
    to {
        offset-distance: 100%;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Avatar Container */
.avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.avatar-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(1, 67, 125, 0.4);
    border: 3px solid rgba(100, 200, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(100, 200, 255, 0.9);
    box-shadow: 0 0 25px rgba(100, 200, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 25px rgba(100, 200, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 45px rgba(100, 200, 255, 0.8);
    }
}

/* Input Group */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    background: #01437D;
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 12px;
    font-size: 15px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus {
    background: rgba(1, 67, 125, 0.8);
    border-color: rgba(100, 200, 255, 0.7);
    box-shadow: 0 0 20px rgba(100, 200, 255, 0.4);
}

/* Options Row */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 13px;
}

/* Remember Me Checkbox */
.remember-me {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input:checked+.checkmark {
    background: rgba(74, 144, 226, 0.7);
    border-color: rgba(74, 144, 226, 0.9);
}

.remember-me input:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

/* Forgot Password Link */
.forgot-password {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-style: italic;
}

.forgot-password:hover {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 16px;
    background: #01437D;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(1, 67, 125, 0.5);
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(100, 200, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-btn:hover {
    background: rgba(1, 67, 125, 0.9);
    box-shadow: 0 6px 30px rgba(100, 200, 255, 0.6);
    transform: translateY(-2px);
}

.login-btn:hover::before {
    width: 400px;
    height: 400px;
}

.login-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        width: 90%;
        padding: 40px 30px;
    }

    .avatar-icon {
        width: 100px;
        height: 100px;
    }

    .avatar-icon svg {
        width: 50px;
        height: 50px;
    }
}


.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}

.success-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.success-box {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    animation: zoomIn .4s ease;
}

.success-box .checkmark {
    font-size: 55px;
    margin-bottom: 10px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}