/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0d1f22 0%, #0f2027 30%, #203a43 60%, #2c5364 100%);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 20px 0;
}

/* ===== Animated Background ===== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2));
    animation: float 15s infinite ease-in-out;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
    animation-delay: -5s;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(20, 184, 166, 0.2));
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    animation-delay: -10s;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.15));
}

.circle-4 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 20%;
    animation-delay: -7s;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(52, 211, 153, 0.15));
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 10px) scale(1.02);
    }
}

/* ===== Login Container ===== */
.login-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* ===== Login Card ===== */
.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(20px);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Logo Section ===== */
.logo-section {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
}

.logo-icon i {
    font-size: 36px;
    color: #fff;
}

.brand-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== Form Section ===== */
.form-section {
    padding: 35px 40px 40px;
}

.welcome-text {
    color: #1a1a2e;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.signin-text {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 30px;
}

.validation-errors {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    border-left: 4px solid #dc2626;
}

.validation-errors:empty {
    display: none;
}

/* ===== Input Groups ===== */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
    z-index: 1;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    transition: all 0.3s ease;
    color: #1a1a2e;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    outline: none;
    border-color: #10b981;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.form-input:focus + .input-icon,
.input-group:focus-within .input-icon {
    color: #10b981;
}

/* ===== Options Row ===== */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #10b981;
    cursor: pointer;
}

/* ===== Sign In Button ===== */
.btn-signin {
    width: 100%;
    padding: 16px 30px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-signin:active {
    transform: translateY(0);
}

.btn-signin i {
    transition: transform 0.3s ease;
}

.btn-signin:hover i {
    transform: translateX(5px);
}

/* ===== Divider ===== */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #9ca3af;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

.divider span {
    padding: 0 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Footer Links ===== */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
}

.footer-links a:hover {
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

.footer-links a i {
    font-size: 16px;
}

.link-register:hover {
    color: #059669;
    background: rgba(5, 150, 105, 0.08);
}

.link-info:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}

/* ===== Copyright ===== */
.copyright {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 15px;
    }

    .login-container {
        width: 100%;
        padding: 10px;
    }

    .login-card {
        max-width: 100%;
        border-radius: 20px;
    }

    .form-section {
        padding: 25px 20px 30px;
    }

    .logo-section {
        padding: 25px 20px;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }

    .logo-icon i {
        font-size: 28px;
    }

    .brand-title {
        font-size: 26px;
    }

    .brand-subtitle {
        font-size: 12px;
    }

    .welcome-text {
        font-size: 20px;
    }

    .signin-text {
        margin-bottom: 20px;
    }

    .input-group {
        margin-bottom: 15px;
    }

    .form-input {
        padding: 14px 14px 14px 45px;
        font-size: 14px;
    }

    .options-row {
        margin-bottom: 20px;
    }

    .btn-signin {
        padding: 14px 25px;
        font-size: 15px;
    }

    .divider {
        margin: 20px 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .footer-links a {
        width: 100%;
        justify-content: center;
        padding: 12px 15px;
        background: #f3f4f6;
        border-radius: 10px;
    }

    .copyright {
        margin-top: 20px;
        font-size: 11px;
    }

    .circle-1, .circle-2, .circle-3, .circle-4 {
        display: none;
    }
}