:root {
    --primary-color: #1a365d;
    --secondary-color: #dd6b20;
}

body {
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a365d10 0%, #dd6b2010 100%),
                url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a365d' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-color: #f8fafc;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a4365 100%);
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
}

.login-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 1.75rem;
}

.login-header p {
    font-size: 0.95rem;
}

.login-logo {
    margin-bottom: 20px;
}

.login-logo img {
    width: 180px;
    height: auto;
    opacity: 0.95;
}

.login-body {
    padding: 35px 30px;
}

.form-floating {
    margin-bottom: 20px;
    position: relative;
}

.form-floating > .form-control {
    height: 58px;
    padding: 1.5rem 0.75rem 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-floating > .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(221, 107, 32, 0.15);
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
    color: #6b7280;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.8;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    background: white;
    padding: 0 5px;
    height: auto;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(221, 107, 32, 0.15);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color), #2a4365);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
    color: white;
}

.btn-login:hover {
    background: linear-gradient(135deg, #2a4365, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
    color: white;
}

.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-container .form-control {
    flex: 1;
    height: 50px;
}

.captcha-img {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    height: 50px;
    background: #f8fafc;
}

.btn-refresh {
    background: var(--secondary-color);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 0 15px;
    font-size: 14px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-refresh:hover {
    background: #c05621;
    transform: scale(1.05);
}

.register-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.register-link:hover {
    color: #c05621;
    text-decoration: underline;
}

.alert {
    border-radius: 12px;
    border: none;
    margin-bottom: 20px;
    padding: 12px 16px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    z-index: 10;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--secondary-color);
}

.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(221, 107, 32, 0.25);
}

.form-check-label {
    color: #6b7280;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.text-muted {
    color: #6b7280 !important;
}

.text-danger {
    color: #dc2626 !important;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.admin-login-link {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.admin-login-link a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.admin-login-link a:hover {
    color: var(--primary-color);
}

.admin-login-link i {
    color: var(--primary-color);
}

@media (max-width: 576px) {
    .login-container {
        padding: 15px;
    }
    
    .login-card {
        border-radius: 16px;
    }
    
    .login-header {
        padding: 30px 20px 25px;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }

    .login-body {
        padding: 25px 20px;
    }

    .captcha-container {
        flex-wrap: wrap;
    }
    
    .captcha-container .form-control {
        min-width: 80px;
    }
    
    .login-logo img {
        width: 150px;
    }
}
