:root {
    --primary-color: #0077b6;
    --primary-dark: #023e8a;
    --primary-light: #48cae4;
    --text-dark: #1a1a1a;
    --text-light: #4a5568;
    --border-color: #cbd5e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 77, 112, 0.95), rgba(11, 111, 165, 0.95), rgba(49, 126, 214, 0.92));
    /* background: var(--primary-dark); */
    padding: 2rem 1rem;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('../../img/cscbglogin.jpg') no-repeat center center / cover;
    opacity: 0.15;
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 530px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

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

.login-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f5a623, #ffd700, #f5a623);
}

.login-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.login-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.95;
    font-size: 0.95rem;
}

.login-body {
    padding: 2.5rem 2rem;
}

/* Google OAuth Button */
.btn-google {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.875rem;
    font-weight: 600;
    color: #444;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.btn-google:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 182, 0.2);
    color: #444;
}

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

.oauth-notice {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1rem;
}

.oauth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

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

.oauth-divider span {
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Form Elements */
.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-label i {
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    border-radius: 10px;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.input-group {
    position: relative;
}

.input-group .form-control {
    padding-right: 3rem;
}

.input-group-text {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    cursor: pointer;
    transition: color 0.3s;
    color: var(--text-light);
    background: transparent;
    border: none;
    z-index: 10;
}

.input-group-text:hover {
    color: var(--primary-color);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    cursor: pointer;
}

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

.form-check-label {
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-light);
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--primary-dark);
}

.btn-login {
    width: 100%;
    /* background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); */
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border: none;
    border-radius: 10px;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 119, 182, 0.3);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.footer-links a:hover {
    color: var(--primary-dark);
    background: rgba(0, 119, 182, 0.05);
}

.back-home {
    text-align: center;
    margin-top: 1.5rem;
}

.back-home a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.back-home a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.privacy-notice {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.privacy-notice a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 576px) {
    body {
        padding: 1rem 0.5rem;
    }

    .login-header {
        padding: 2rem 1.5rem;
    }

    .login-header h3 {
        font-size: 1.5rem;
    }

    .login-body {
        padding: 2rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-links a {
        width: 100%;
        justify-content: center;
    }
}