/**
 * CRM Authentication Styles
 * Shared styles for login, logout, and other auth pages.
 */

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

/* Body - centered gradient background */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e3a5f 0%, #0891b2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Auth container - white card */
.auth-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
}

/* Header styles */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Error messages */
.error-messages {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
}

.error-messages ul {
    list-style: none;
    color: #991b1b;
}

.error-messages li {
    font-size: 0.9rem;
}

/* Form groups */
.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-group label {
    display: block;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.auth-form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.auth-form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Primary button (submit) */
.auth-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

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

.auth-button--full {
    width: 100%;
}

/* Secondary link */
.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.auth-link a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* Cancel link (for logout confirmation) */
.auth-cancel {
    display: inline-block;
    padding: 0.875rem 2rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.auth-cancel:hover {
    color: #1e3a5f;
}

/* Button group (for logout confirmation) */
.auth-button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* Centered content (for logout pages) */
.auth-container--centered {
    text-align: center;
}

.auth-container--centered h1 {
    font-size: 1.75rem;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

.auth-container--centered p {
    color: #64748b;
    margin-bottom: 2rem;
}

/* Icon for logged out page */
.auth-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Hide Django's default helptext */
.helptext {
    display: none;
}
