@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #006bff;
    --primary-hover: #0059d6;
    --text-color: #1a1a1a;
    --text-muted: #666666;
    --border-color: #e2e8f0;
    --input-focus: #006bff22;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.auth-body {
    background-color: var(--bg-color);
    font-family: var(--font-family);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.auth-header {
    margin-top: 48px;
    margin-bottom: 32px;
    text-align: center;
}

.auth-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-logo span {
    color: var(--text-color);
}

.auth-container {
    width: 100%;
    max-width: 460px;
    padding: 20px;
    box-sizing: border-box;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.3px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #c4c4c4;
    border-radius: 40px;
    background-color: #ffffff;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    text-decoration: none;
}

.btn-social:hover {
    background-color: #fafafa;
    border-color: #a5a5a5;
}

.btn-social img {
    width: 18px;
    height: 18px;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider:not(:empty)::before {
    margin-right: 16px;
}

.auth-divider:not(:empty)::after {
    margin-left: 16px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
    font-family: var(--font-family);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--input-focus);
}

.btn-primary {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: var(--font-family);
    margin-top: 8px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Validation and Helpers */
.text-danger {
    color: #df1b1b;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.validation-summary-errors {
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
    color: #c53030;
    font-size: 13px;
}

/* Auth Footer */
.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Helper flex layout for check boxes */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    user-select: none;
}

.form-check input {
    cursor: pointer;
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.flex-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
