/* Authentication Pages Styling */

/* Card Container */
.auth-card {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-card-header {
    background: linear-gradient(135deg, #3273dc 0%, #2366d1 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.auth-card-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
}

.auth-card-header p {
    margin-top: 0.5rem;
    opacity: 0.9;
    font-size: 0.95rem;
}

.auth-card-body {
    padding: 2rem;
}

/* Context Section */
.auth-context {
    background: #f8f9fa;
    border-left: 4px solid #3273dc;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.auth-context h3 {
    color: #363636;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.auth-context ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.auth-context li {
    margin-bottom: 0.25rem;
    color: #4a4a4a;
}

/* Form Styling */
.auth-form .field {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #363636;
}

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

.auth-form .input:focus {
    outline: none;
    border-color: #3273dc;
    box-shadow: 0 0 0 3px rgba(50, 115, 220, 0.1);
}

/* Error States */
.auth-form .input.is-danger {
    border-color: #ff3860;
}

.auth-form .input.is-success {
    border-color: #23d160;
}

.help.is-danger {
    color: #ff3860;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Password Requirements */
.password-requirements {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.password-requirements h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #363636;
}

.password-requirements ul {
    margin: 0;
    padding-left: 1.25rem;
}

.password-requirements li {
    color: #4a4a4a;
    margin-bottom: 0.25rem;
}

.password-requirements li.valid {
    color: #23d160;
}

.password-requirements li.invalid {
    color: #ff3860;
}

/* Buttons */
.auth-form .button {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.auth-form .button.is-primary {
    background: #3273dc;
    color: white;
    width: 100%;
}

.auth-form .button.is-primary:hover {
    background: #2366d1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(50, 115, 220, 0.3);
}

.auth-form .button.is-loading {
    color: transparent;
    pointer-events: none;
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.auth-links a {
    color: #3273dc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #2366d1;
    text-decoration: underline;
}

/* Messages */
.message {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.is-success {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.message.is-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.message.is-info {
    background-color: #f0f9ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.message-body {
    flex: 1;
}

.delete {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.delete:hover {
    opacity: 1;
}

/* Checkbox styling */
.checkbox-field {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.checkbox-field input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-field label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

/* Password toggle */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #4a4a4a;
    padding: 0.5rem;
}

.password-toggle:hover {
    color: #363636;
}

/* Form field error animations */
.field.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        margin: 1rem;
        max-width: 100%;
    }
    
    .auth-card-body {
        padding: 1.5rem;
    }
    
    .auth-card-header {
        padding: 1.5rem;
    }
}

/* Privacy notice */
.privacy-notice {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #4a4a4a;
}

.privacy-notice a {
    color: #3273dc;
    text-decoration: none;
}

.privacy-notice a:hover {
    text-decoration: underline;
}