/* BASIC */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #00b4db, #0083b0),
        url('https://images.unsplash.com/photo-1512436991641-6745cdb1723f?auto=format&fit=crop&w=900&q=80');
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.08);
    z-index: 0;
}

/* STRUCTURE */
.wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

#formContent {
    background: white;
    padding: 40px 32px;
    border-radius: 18px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    margin: 0 auto;
    animation: slideInLeft 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-80vw);
    }
    60% {
        opacity: 1;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Brand Styling */
.brand-container {
    margin-bottom: 32px;
    text-align: center;
}

.brand-name {
    font-size: 3rem;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 2px;
    letter-spacing: 2px;
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(39, 174, 96, 0.18);
}

.brand-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* Form Styling */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 18px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input:focus {
    border-color: #1a75ff;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,117,255,0.08);
}

/* Captcha Styling */
.captcha-group {
    text-align: center;
}

.captcha-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.refresh-icon {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.refresh-icon:hover {
    transform: rotate(180deg);
}

/* Button Styling */
.login-btn {
    width: 100%;
    padding: 12px;
    background: #1a75ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.login-btn:hover {
    background: #0052cc;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(26,117,255,0.13);
}

.login-btn:active {
    transform: translateY(0);
}

/* Message Styling */
.message-container {
    margin: 18px 0;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.98rem;
}

.alert-info {
    background-color: #e6f3ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* Animations */
.fadeInDown {
    -webkit-animation-name: fadeInDown;
    animation-name: fadeInDown;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

@-webkit-keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

.fadeIn {
    opacity: 0;
    animation: fadeIn ease-in 1;
    animation-fill-mode: forwards;
    animation-duration: 1s;
}

.fadeIn.first { animation-delay: 0.2s; }
.fadeIn.second { animation-delay: 0.4s; }
.fadeIn.third { animation-delay: 0.6s; }
.fadeIn.fourth { animation-delay: 0.8s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    #formContent {
        padding: 16px 6px;
        max-width: 98vw;
    }
    .brand-name {
        font-size: 1.3rem;
    }
    .brand-subtitle {
        font-size: 0.95rem;
    }
    .captcha-container {
        flex-direction: column;
        gap: 4px;
    }
    .form-input {
        font-size: 0.98rem;
        padding: 10px 8px;
    }
    .login-btn {
        font-size: 1rem;
        padding: 10px;
    }
}