/* Modern Authentication Styles */

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 50%, #f0f9ff 100%);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    padding: 2rem;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.auth-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 3rem 2rem;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

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

.auth-header p {
    color: #718096;
    font-size: 0.875rem;
}

.auth-header p a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-header p a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Social Login Section */
.social-login-section {
    margin-bottom: 2rem;
}

.social-login-buttons {
    margin: 1rem 0;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 0.75rem;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.btn-google:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-google svg {
    flex-shrink: 0;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: #a0aec0;
    font-size: 0.875rem;
}

.divider hr {
    flex-grow: 1;
    border: none;
    border-top: 1px solid #e2e8f0;
}

.divider span {
    padding: 0 1rem;
    background: white;
}

/* Form Styles */
.auth-form {
    margin-top: 1.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f7fafc;
    box-sizing: border-box;
    max-width: 100%;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.checkbox-wrapper label {
    font-size: 0.875rem;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 2rem;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-links a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Error Messages */
.errorlist {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.errorlist li {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Non-field Errors */
.non-field-errors {
    background: #fed7d7;
    color: #742a2a;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* Success Messages */
.messages {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.messages .success {
    background: #c6f6d5;
    color: #22543d;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.messages .info {
    background: #bee3f8;
    color: #2a4e7c;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 640px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
}

/* Loading State */
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Logo/Brand */
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    height: 3rem;
    width: auto;
}

/* Alternative: Text Logo */
.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin: 0;
}

.auth-brand p {
    color: #718096;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}