/* 50Eight Auth Pages - Stripe-inspired Design */
/* Base styles */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f6f9fc;
    min-height: 100vh;
}

body.auth-page {
    background: #f6f9fc;
    min-height: 100vh;
}

/* Login Card */
.auth-card {
    width: 100%;
    max-width: 375px;
    background: #ffffff;
    border-radius: 8px;
    padding: 48px 40px;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
}

/* Input Fields */
.auth-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    line-height: 24px;
    color: #32325d;
    background-color: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: #8898aa;
}

.auth-input:focus {
    outline: none;
    border-color: #635bff;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

.auth-input-with-icon {
    padding-left: 42px;
}

.auth-input-with-toggle {
    padding-right: 42px;
}

/* Input Labels */
.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #32325d;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Headings */
.auth-heading {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #32325d;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.auth-subheading {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #8898aa;
    margin-bottom: 32px;
    line-height: 22px;
}

/* Buttons */
.auth-btn {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: #635bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    display: block;
    text-align: center;
}

.auth-btn:hover {
    background-color: #5851db;
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

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

/* Links */
.auth-link {
    color: #635bff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #5851db;
}

.auth-link-inline {
    display: inline-flex;
    align-items: center;
}

/* Footer Links */
.auth-footer-link {
    color: #8898aa;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.auth-footer-link:hover {
    color: #32325d;
}

/* Checkbox */
.auth-checkbox-label {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    color: #32325d;
    cursor: pointer;
    margin-bottom: 24px;
}

.auth-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    margin-top: 2px;
    accent-color: #635bff;
}

.auth-checkbox-center {
    align-items: center;
    margin-bottom: 24px;
}

/* Error/Success Messages */
.auth-message-box {
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-error-box {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.auth-success-box {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.auth-error-text {
    color: #e1395d;
    font-size: 13px;
    margin-top: 6px;
}

/* Divider */
.auth-divider {
    border-top: 1px solid #e6ebf1;
    margin: 24px 0;
}

/* Icon Container */
.auth-icon-container {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #635bff 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-icon-container.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Input wrapper with icon */
.auth-input-wrapper {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8898aa;
    pointer-events: none;
}

.auth-input-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #8898aa;
    padding: 4px;
}

.auth-input-toggle:hover {
    color: #32325d;
}

/* Password Requirements */
.auth-requirements {
    background: #f7f9fc;
    border-radius: 4px;
    padding: 16px;
    margin: 16px 0 24px;
}

.auth-requirements ul {
    margin: 0;
    padding-left: 16px;
}

.auth-requirements li {
    font-size: 13px;
    color: #8898aa;
    margin-bottom: 4px;
}

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

.auth-form-group.tight {
    margin-bottom: 16px;
}

/* Flex row for label + link */
.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: 0;
        box-shadow: none;
    }

    body.auth-page {
        background: #ffffff;
    }
}

/* Footer */
.auth-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    text-align: center;
}

.auth-footer-separator {
    color: #e6ebf1;
    margin: 0 8px;
}

/* Logo */
.auth-logo {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
}

/* Input Error State */
.auth-input-error {
    border-color: #e1395d !important;
}

.auth-input-error:focus {
    border-color: #e1395d !important;
    box-shadow: 0 0 0 3px rgba(225, 57, 93, 0.15) !important;
}

/* Password Hint */
.auth-password-hint {
    margin-top: 4px;
}

.auth-password-hint-text {
    font-size: 12px;
    color: #8898aa;
}

/* Page Layout Container */
.auth-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Logo Spacing */
.auth-logo-wrapper {
    margin-bottom: 40px;
}

/* Sign up/Sign in Section */
.auth-signup-section {
    text-align: center;
}

.auth-signup-text {
    font-size: 14px;
    color: #8898aa;
}

.auth-signup-link {
    font-weight: 500;
}

/* Back Link Section */
.auth-back-link {
    margin-top: 32px;
}

.auth-back-link svg {
    margin-right: 6px;
}

/* Error Box Content */
.auth-error-heading {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.auth-error-message {
    margin: 0;
    font-size: 14px;
}

/* Utilities */
.auth-hidden {
    display: none;
}

.auth-mt-24 {
    margin-top: 24px;
}
