/* Common Auth Styles - Shared across signup, login, and forgot-password pages */
/* Uses brand tokens from /assets/css/tokens.css */

/* Reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body - fullscreen gradient background */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

/* Common container styles */
.auth-container,
.container,
.verification-container,
.reset-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

/* Common header styles */
.auth-header,
.header,
.verification-header,
.reset-header {
    background: linear-gradient(135deg, var(--green) 0%, var(--primary-dark) 100%);
    padding: 40px 30px;
    text-align: center;
}

.auth-header h1,
.header h1,
.verification-header h1,
.reset-header h1 {
    color: white;
    margin-bottom: 10px;
}

.auth-header p,
.header p,
.verification-header p,
.reset-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

/* Container widths */
.container {
    max-width: 500px;
}

.verification-container {
    max-width: 450px;
}

.reset-container {
    max-width: 400px;
}

/* Common form styles */
.auth-form {
    padding: 40px 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--warm-700);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--warm-200);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(17, 185, 129, 0.1);
}

/* Common button styles */
.btn-primary,
.btn-reset {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--green) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover,
.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(17, 185, 129, 0.3);
}

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

/* Alert and message styles */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error,
.error-message {
    background: var(--error-bg);
    color: var(--error-dark);
    border: 1px solid var(--error-border);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success,
.success-message {
    background: var(--success-bg);
    color: var(--success-dark);
    border: 1px solid var(--success-border);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Form footer styles */
.form-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--warm-200);
    text-align: center;
}

.form-footer a {
    color: var(--green);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.form-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Additional common styles from new auth pages */
.content,
.verification-content {
    padding: 40px 30px;
}

/* Info box styles */
.info-box {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--info-dark);
}

/* Divider */
.divider {
    margin: 15px 0;
    color: var(--warm-400);
    font-size: 14px;
}

/* Help text */
.help-text {
    font-size: 13px;
    color: var(--warm-500);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Logo styles */
.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 28px;
    font-weight: bold;
}

/* Visually hidden - for screen readers only */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
