/* Authentication Pages Styles - Common for Login and Register */

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    max-width: 480px;
    width: 100%;
}

.login-container {
    max-width: 420px;
}

.auth-header {
    background: linear-gradient(135deg, #212529 0%, #495057 100%);
    color: white;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    border: none;
}

.auth-header .logo-container {
    margin-bottom: 1rem;
}

.auth-header .brand-icon {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 1rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.auth-header p {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 400;
}

.register-header p {
    color: rgba(255, 255, 255, 0.9);
}

.auth-body {
    padding: 2rem;
}

.form-floating {
    margin-bottom: 1.5rem;
}

.form-floating .form-control {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    padding: 1rem 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-floating .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-floating label {
    color: #6c757d;
    font-weight: 500;
}

.btn-auth {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-auth:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.5);
}

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

.auth-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.alert {
    border-radius: 0.5rem;
    border: none;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.alert-danger {
    background: linear-gradient(135deg, #fee, #fdd);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.input-group-text {
    background: transparent;
    border: 2px solid #e9ecef;
    border-right: none;
    color: #6c757d;
}

.password-toggle {
    background: transparent;
    border: 2px solid #e9ecef;
    border-left: none;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #667eea;
}

/* Form field styling for Django form fields */
.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 500;
}

.form-field input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-field input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-field .helptext {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-container {
        margin: 1rem;
        max-width: none;
    }

    .auth-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .auth-body {
        padding: 1.5rem;
    }
}