/* Authentication Pages Styles - Using CPUP Brand Colors */
/* Following the same style as the main website - no gradients, clean bege/blue/white */

/* Body for auth pages */
body.auth-page {
    background-color: var(--beige);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Auth wrapper */
.auth-wrapper {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Auth card container */
.auth-card {
    background-color: var(--white);
    border-radius: 10px;
    border: 1px solid var(--light-gray);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
}

/* Auth header */
.auth-header {
    background-color: var(--blue);
    color: var(--white);
    padding: 40px 30px;
    text-align: center;
}

.auth-header .auth-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--white);
}

.auth-header p {
    margin: 0;
    font-size: 16px;
    color: var(--beige);
    opacity: 0.95;
}

/* Auth body */
.auth-body {
    padding: 40px 30px;
    background-color: var(--white);
}

/* Form elements */
.auth-body .form-label {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.auth-body .form-control {
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 15px;
    transition: border-color 0.3s;
    width: 100%;
    background-color: var(--white);
}

.auth-body .form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 0.2rem rgba(36, 50, 119, 0.1);
    outline: none;
    background-color: var(--white);
}

.auth-body .form-control::placeholder {
    color: var(--gray);
}

/* Buttons */
.auth-body .btn-primary {
    background-color: var(--blue);
    border: 2px solid var(--blue);
    border-radius: 5px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s;
    color: var(--white);
    cursor: pointer;
}

.auth-body .btn-primary:hover {
    color: var(--white);
}

.auth-body .btn-secondary {
    background-color: var(--white);
    border: 2px solid var(--blue);
    border-radius: 5px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s;
    color: var(--blue);
    cursor: pointer;
}

.auth-body .btn-secondary:hover {
    background-color: var(--beige);
}

/* Alerts */
.auth-body .alert {
    border-radius: 5px;
    border: 2px solid;
    padding: 15px;
    margin-bottom: 20px;
}

.auth-body .alert-danger {
    background-color: #fff5f5;
    color: var(--red);
    border-color: var(--red);
}

.auth-body .alert-success {
    background-color: #f0f9ff;
    color: #0c5460;
    border-color: #155724;
}

.auth-body .alert-info {
    background-color: #f0f9ff;
    color: var(--dark-cian);
    border-color: var(--dark-cian);
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--light-gray);
}

.auth-divider span {
    background-color: var(--white);
    padding: 0 15px;
    position: relative;
    color: var(--gray);
    font-size: 14px;
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Back to site link */
.back-to-site {
    text-align: center;
    margin-top: 20px;
}

.back-to-site a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--white);
    border-radius: 5px;
    border: 2px solid var(--blue);
}

.back-to-site a:hover {
    background-color: var(--blue);
    color: var(--white);
}

/* Form check (checkbox/radio) */
.auth-body .form-check-label {
    color: var(--light-black);
    font-weight: normal;
}

.auth-body .form-check-input:checked {
    background-color: var(--blue);
    border-color: var(--blue);
}

/* Text muted */
.auth-body .text-muted {
    color: var(--gray) !important;
    font-size: 14px;
}

/* Small text */
.auth-body small {
    color: var(--gray);
    font-size: 13px;
}

/* Additional styling for consistency */
.auth-body hr {
    border-color: var(--light-gray);
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-header {
        padding: 24px 10px;
    }
    .auth-header h1 {
        font-size: 20px;
    }
    .auth-header .auth-logo {
        max-width: 120px;
    }
    .auth-body {
        padding: 20px 10px;
    }
    .auth-wrapper {
        max-width: 98vw;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .auth-card {
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    .back-to-site a {
        font-size: 13px;
        padding: 8px 12px;
    }
}
