.login-wrapper {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    padding: 1.5rem;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 0% 0%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(231, 76, 60, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 480px;
    margin: 0 auto;
}

.login-box:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
}

.logo-container {
    background: white;
    width: 85px;
    height: 85px;
    border-radius: 18px;
    padding: 0.875rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.login-title {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Times New Roman' !important;
}

.login-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1.75rem;
}

.form-floating > .form-control {
    height: calc(3.25rem + 2px);
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    background-color: #ffffff !important;
    color: #2c3e50 !important;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.form-floating > .form-control:focus {
    border-color: #3498db;
    background-color: #ffffff;
    color: #2c3e50;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.1);
}

.form-floating > .form-control::placeholder {
    color: #adb5bd;
}

.form-floating > label {
    padding: 0.875rem 1.25rem;
    color: #6c757d;
    font-weight: 500;
    font-size: 1rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #3498db;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.password-toggle {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.password-toggle:hover {
    color: #3498db;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.875rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.btn-google {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    color: #2c3e50;
    font-weight: 600;
    padding: 0.875rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.divider-wrapper {
    margin: 1.75rem 0;
    position: relative;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e9ecef;
}

.divider-text {
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.9375rem;
    font-weight: 500;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    animation: slideIn 0.3s ease-out;
}

.alert-danger {
    background-color: #fee2e2;
    color: #dc2626;
}

.security-note {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
}

@keyframes slideIn {
    from {
        transform: translateY(-8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .login-wrapper {
        padding: 1rem;
    }

    .login-box {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .logo-container {
        width: 70px;
        height: 70px;
        padding: 0.75rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-subtitle {
        font-size: 0.9375rem;
    }

    .form-floating > .form-control,
    .form-floating > label {
        font-size: 0.9375rem;
    }

    .btn-primary,
    .btn-google {
        font-size: 0.9375rem;
        padding: 0.75rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .login-box {
        max-width: 420px;
    }
}

@media (min-width: 769px) {
    .login-box {
        max-width: 480px;
    }
}
/* reCAPTCHA widget styling */
.g-recaptcha {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    transform: scale(1);
    transform-origin: 0 0;
}

@media (max-width: 576px) {
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: 0 0;
    }
}
