/* Shared styles for authentication forms (login, signup, password reset) */

button {
    cursor: pointer;
}

body {
    background-color: white;
}

/* Card and heading styles */
#login-wrapper h2,
#login-wrapper h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--blue-midnight);
}

#login-wrapper h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

/* Form field styles */
.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    color: var(--blue-midnight);
    margin-bottom: 8px;
}

.form-field label.password-label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--brand-green);
}

/* Form group styles (for signup form) - keeping for backward compatibility */
.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-green);
}

/* Signup form field wrapper - uses form-field styling */
.signup-field-wrapper {
    margin-bottom: 0;
}

.signup-label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Forgot password link */
.forgot-password-link {
    color: var(--blue-500);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Button styles */
#login-wrapper .signin-button,
#login-wrapper button[type="submit"],
#login-wrapper .button.primary {
    width: 100%;
}

.signin-button:hover,
#login-wrapper button[type="submit"]:hover,
#login-wrapper .button.primary:hover {
    background-color: var(--green-700);
}

/* Signup section */
.authinfo-section {
    background-color: var(--grey-100);
    padding: 16px;
    text-align: center;
    margin-top: 24px;
}

.authinfo-section p {
    margin: 0;
    color: var(--blue-midnight);
}

.authinfo-section a {
    color: var(--blue-500);
    text-decoration: none;
}

.authinfo-section a:hover {
    text-decoration: underline;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 32px 0;
    color: var(--grey-500);
}

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

.divider span {
    padding: 0 16px;
}

/* Workers comp button */
.workers-comp-button {
    display: block;
    width: 100%;
    background-color: white;
    color: var(--brand-green);
    border: 1px solid var(--brand-green);
    padding: 12px;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.workers-comp-button:hover {
    background-color: var(--extra-light-green);
}

.workers-comp-explanation {
    font-size: 12px;
    color: var(--blue-midnight);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

/* Form errors */
.form-errors {
    color: var(--danger-dark);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.form-errors ul {
    margin: 0;
    padding-left: 20px;
}

.field-errors,
.error-message {
    color: var(--danger-dark);
    font-size: 12px;
    margin-top: 4px;
}

.error-message {
    display: none;
}

.error-message.show {
    display: block;
}

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

.messages .message,
.messages .success,
.messages .error,
.messages .warning,
.messages .info {
    padding: 10px;
    margin-bottom: 2px;
    border-radius: 4px;
}

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

.messages .error,
.messages .warning {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.messages .info {
    color: #004085;
    background-color: #cce5ff;
    border: 1px solid #b3d7ff;
}

/* Signup toggle styles */
.signup-field-wrapper {
    margin-bottom: 0;
}

.signup-field-with-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.signup-field-with-link input {
    flex: 1;
    margin-top: 0;
}

.signup-toggle-link {
    color: var(--blue-500);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.signup-toggle-link:hover {
    text-decoration: underline;
}

.signup-toggle-link.disabled {
    color: var(--grey-500);
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: none;
}

/* Text content styles */
#login-wrapper p {
    color: var(--blue-midnight);
    line-height: 1.5;
}

#login-wrapper a:hover {
    text-decoration: underline;
}

/* Centered text sections */
.text-center {
    text-align: center;
    margin-top: 20px;
}

/* Help text */
.help-text {
    color: #6c757d;
    font-size: 0.875em;
    margin-top: 4px;
    display: block;
}

