/* ===== Auth Pages Styles (Login & Register) ===== */

.auth-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #0B3D91;
    margin: 0 0 10px 0;
    font-size: 28px;
}

.auth-header p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #0B3D91;
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.consent-group {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.consent-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.consent-group input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #0B3D91;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover:not(:disabled) {
    background: #0a2d72;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
    max-height: 300px;
    overflow-y: auto;
}

.success-message {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.forgot-password {
    text-align: right;
    margin-top: 12px;
}

.forgot-password a {
    color: #0B3D91;
    text-decoration: none;
    font-size: 13px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #ddd;
}

.divider span {
    position: relative;
    background: #f8f9fa;
    padding: 0 10px;
    color: #999;
    font-size: 13px;
}

.oauth-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.oauth-btn {
    padding: 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.oauth-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.oauth-btn:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

.linkedin-btn {
    color: #0077b5;
}

.link-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.link-text a {
    color: #0B3D91;
    text-decoration: none;
    font-weight: 600;
}

.link-text a:hover {
    text-decoration: underline;
}

.loading {
    text-align: center;
    color: #999;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.remember-me input {
    cursor: pointer;
}

.privacy-note {
    background: #f0f4ff;
    padding: 12px;
    border-radius: 5px;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 640px) {
    .auth-container {
        margin: 30px auto;
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 20px;
    }
}
