/* Authentication Pages Styles */
/* Minimal, self-contained styles for login/password recovery pages */
/* No dependencies on dashboard bundles */

:root {
    --auth-primary: #0057b8;
    --auth-primary-dark: #00c1ab;
    --auth-primary-shadow: rgba(0, 87, 184, 0.15);
    --auth-accent: #00d1b2;
    --auth-text-dark: #1a202c;
    --auth-text-medium: #2d3748;
    --auth-text-light: #718096;
    --auth-text-lighter: #a0aec0;
    --auth-border: #d7e2ef;
    --auth-border-hover: #b1c5d9;
    --auth-bg-light: #f2f9ff;
    --auth-error-bg: #fff5f5;
    --auth-error-border: #fc8181;
    --auth-error-text: #c53030;
}

/* CINC Logo */
.logo-figure {
    display: inline-block;
    vertical-align: top;
    width: 370px;
    height: 70px;
    background-image: url("https://s-static.cinccdn.com/img/dashboard/logo/v2/pro_menu_ic.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%, cover;
    padding: 14px 18px;
    border-radius: 14px;
    color: transparent;
    margin-bottom: 16px;
}

/* Container */
.agent-login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    padding: 20px 20px;
}

/* Card */
.agent-login-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 48px 40px;
    width: 100%;
    max-width: 450px;
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header .logo-figure {
    display: block;
    margin: 0 auto 24px;
}

.login-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--auth-text-dark);
    font-weight: 600;
}

.login-header p {
    color: var(--auth-text-light);
    font-size: 15px;
}

/* Form */
.agent-login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--auth-text-medium);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--auth-border);
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(0, 209, 178, 0.15);
}

.form-control::placeholder {
    color: var(--auth-text-lighter);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 87, 184, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Divider */
.login-divider {
    text-align: center;
    margin: 28px 0;
    position: relative;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--auth-border);
}

.login-divider::before {
    left: 0;
}

.login-divider::after {
    right: 0;
}

.login-divider span {
    background: white;
    padding: 0 16px;
    color: var(--auth-text-lighter);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Admin login options */
.admin-login-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.btn-admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 2px solid var(--auth-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--auth-text-medium);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, rgba(0, 87, 184, 0.06), rgba(0, 193, 171, 0.03));
}

.btn-admin-login:hover {
    background: linear-gradient(135deg, rgba(0, 87, 184, 0.12), rgba(0, 193, 171, 0.08));
    border-color: var(--auth-accent);
    transform: translateY(-1px);
}

.btn-admin-login:active {
    transform: translateY(0);
}

/* Footer */
.login-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--auth-border);
    font-size: 14px;
}

.login-footer a {
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Validation */
.validation-summary {
    background: var(--auth-error-bg);
    border: 1px solid var(--auth-error-border);
    color: var(--auth-error-text);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.validation-summary ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.validation-summary li {
    margin: 4px 0;
}

/* Radio groups (for password recovery options) */
.radio-group {
    margin: 20px 0;
}

.radio-option {
    display: block;
    padding: 16px;
    border: 2px solid var(--auth-border);
    border-radius: 6px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: var(--auth-border-hover);
    background: var(--auth-bg-light);
}

.radio-option input[type="radio"] {
    margin-right: 12px;
}

.radio-option input[type="radio"]:checked + .radio-label {
    font-weight: 600;
}

.radio-label {
    display: inline-block;
}

/* Success message */
.success-message {
    text-align: center;
    padding: 24px 0;
}

.success-icon {
    display: inline-block;
    width: 64px;
    height: 64px;
    background: var(--auth-accent);
    border-radius: 50%;
    margin-bottom: 16px;
    position: relative;
}

.success-icon::after {
    content: '✓';
    color: white;
    font-size: 36px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.success-message h2 {
    font-size: 22px;
    color: var(--auth-text-medium);
    margin-bottom: 8px;
}

.success-message p {
    color: var(--auth-text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 480px) {
    .agent-login-card {
        padding: 32px 24px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .login-header p {
        font-size: 14px;
    }

    .agent-login-container {
        padding: 32px 16px;
        gap: 24px;
    }
}
