/* Authentication Styles
   Common styles for login, registration, password recovery */

/* Auth container */
.auth-container {
    /* Extends .container class */
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Auth forms */
.auth-form {
    margin-top: 20px;
}

/* Form description text */
.form-description {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.5;
    font-family: 'Open Sans', sans-serif;
}

/* Form Grouping */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
    font-family: 'Open Sans', sans-serif;
}

/* Input Styling */
.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    font-family: 'Open Sans', sans-serif;
}

.form-input:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Error and Validation Styles */
.form-input.input-error {
    border-color: var(--accent-color) !important;
}

/* Error messaging - supports both implementations */
.form-error-message,
.error-message {
    display: block;
    color: var(--accent-color);
    font-size: 0.875rem;
    margin-top: 6px;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Error container for grouped error messages */
.error-container {
    margin-top: 8px;
    color: var(--accent-color);
    font-size: 0.875rem;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    z-index: auto;
}

/* Registration-specific error adjustments */
.error-message::before,
.error-icon,
.error-text {
    display: none;
}

/* Password Input */
.password-input-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
}

.toggle-password i {
    font-size: 16px;
}

/* Password strength meter */
.password-strength {
    margin-top: 8px;
    font-size: 0.875rem;
    font-family: 'Open Sans', sans-serif;
}

.strength-bar {
    display: block;
    height: 4px;
    width: 100%;
    background-color: var(--background-light);
    margin-bottom: 5px;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar::before {
    content: "";
    position: absolute;
    height: 100%;
    width: var(--strength-width, 0%);
    background-color: var(--strength-color, var(--accent-color));
    left: 0;
    top: 0;
    transition: width 0.3s, background-color 0.3s;
}

.strength-text {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Button Styles */
.button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    font-family: 'Open Sans', sans-serif;
}

.button-primary {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.button-primary:hover {
    background-color: var(--accent-color);
    opacity: 0.9;
}

.button-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.button-secondary:hover {
    background-color: rgba(255, 91, 121, 0.1);
}

/* Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: flex-start; 
    margin-bottom: 20px; 
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px; 
    flex-shrink: 0; 
}

.checkbox-container label {
    font-weight: 400;
    font-size: 0.875rem; 
    color: var(--primary-color); 
    line-height: 1.4;
    font-family: 'Open Sans', sans-serif;
}

.checkbox-container label a {
    color: var(--accent-color);
    text-decoration: none;
}

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

/* Form Links */
.form-links {
    text-align: center;
    margin-top: 25px;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-family: 'Open Sans', sans-serif;
}

.form-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    margin: 0 5px;
}

.form-links a:hover {
    text-decoration: underline;
}

.form-links span {
    color: var(--text-muted);
}

/* Form Divider */
.form-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.form-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border-color); 
    z-index: 0; 
}

.form-divider span {
    background-color: #fff; 
    padding: 0 15px; 
    position: relative; 
    z-index: 1; 
    color: var(--text-muted); 
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
}

/* Message Styles */
.messages-container {
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.message {
    padding: 15px 20px;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.message:last-child {
    border-bottom: none;
}

/* Specific message types */
.message-error {
    color: #721c24;
    background-color: #f8d7da;
}

.message-success {
    color: #155724;
    background-color: #d4edda;
}

.message-info {
    color: #0c5460;
    background-color: #d1ecf1;
}

.message-warning {
    color: #856404;
    background-color: #fff3cd;
} 