/* Auth Layout Styles - Flip2.0 Design */

/* Base styles */
.auth {
    min-height: 100vh;
    background-color: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Auth container */
.auth-container {
    width: 100%;
    max-width: 420px;
}

/* Auth card */
.auth-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px 32px;
}

/* Logo badge */
.auth-logo-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    overflow: hidden;
}

.auth-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Headings */
.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a2e44;
    text-align: center;
    margin: 0 0 8px 0;
}

.auth-subtitle {
    font-size: 14px;
    color: #6b7c93;
    text-align: center;
    margin: 0 0 24px 0;
}

/* Social buttons */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e0e5eb;
    border-radius: 8px;
    background: #ffffff;
    color: #1a2e44;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-social:hover {
    background: #f8f9fa;
    border-color: #d0d5db;
    text-decoration: none;
    color: #1a2e44;
}

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

/* OR Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e5eb;
}

.auth-divider span {
    padding: 0 16px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Form labels */
.auth-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a2e44;
    text-align: center;
    margin-bottom: 8px;
}

/* Input group with icon */
.auth-input-group {
    position: relative;
    margin-bottom: 16px;
}

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

.auth-input-icon svg {
    width: 18px;
    height: 18px;
}

.auth-input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1px solid #e0e5eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1a2e44;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-input:focus {
    outline: none;
    border-color: #1a2e44;
    box-shadow: 0 0 0 3px rgba(26, 46, 68, 0.1);
}

.auth-input.is-invalid {
    border-color: #dc3545;
}

/* Submit button */
.btn-auth-submit {
    width: 100%;
    padding: 14px 20px;
    background: #1a2e44;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 8px;
}

.btn-auth-submit:hover {
    background: #243a54;
    color: #ffffff;
}

.btn-auth-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Footer links */
.auth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 8px;
}

.auth-footer a {
    font-size: 13px;
    color: #6b7c93;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: #1a2e44;
}

.auth-footer .signup-link {
    color: #6b7c93;
}

.auth-footer .signup-link a {
    color: #1a2e44;
    font-weight: 600;
}

/* Back link */
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #1a2e44;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.auth-back-link:hover {
    color: #3d5a80;
    text-decoration: none;
}

.auth-back-link svg {
    width: 16px;
    height: 16px;
}

/* Messages/Alerts */
.auth-messages {
    margin-bottom: 16px;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}

.auth-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.auth-alert-info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Checkbox styles */
.auth-checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.auth-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: #1a2e44;
}

.auth-checkbox-label {
    font-size: 13px;
    color: #6b7c93;
}

.auth-checkbox-label a {
    color: #1a2e44;
    text-decoration: none;
}

.auth-checkbox-label a:hover {
    text-decoration: underline;
}

/* Modal overrides for TOS */
.auth .modal-content {
    border-radius: 12px;
}

.auth .modal-header {
    border-bottom: 1px solid #e0e5eb;
}

.auth .modal-footer {
    border-top: 1px solid #e0e5eb;
}

/* Validation error text */
.invalid-feedback {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

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

    .auth-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Google icon colors */
.google-icon {
    width: 18px;
    height: 18px;
}
