/* Login Page Styles - Modern Design */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 2rem;
    transition: background-color 0.3s;
    position: relative;
    overflow: hidden;
}

/* small device */
@media (max-width: 576px) {
    .auth-container {
        margin-top: 1rem;
        margin-bottom: 1rem;
        padding: 1rem;
    }
}

/* Remove the decorative pseudo-elements */
/* .auth-container::before and .auth-container::after elements removed */

/* Remove the morphing animation that was used with the elements */
/* @keyframes morphing removed */

.auth-card {
    background-color: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.07);
    width: 100%;
    max-width: 420px;
    padding: 0;
    border: none;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* dark theme */
[data-theme="dark"] .auth-card {
    background-color: var(--bg-secondary);
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.07);
}

.card-header-band {
    height: 8px;
    background: linear-gradient(90deg, var(--accent-color), #6610f2);
    width: 100%;
}

.auth-header {
    text-align: center;
    padding: 2rem 2.5rem 1.5rem;
    position: relative;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    opacity: 0.85;
}

.form-container {
    padding: 0 2.5rem 2.5rem;
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15);
}

.form-input::placeholder {
    color: #adb5bd;
    opacity: 0.7;
}

.auth-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: linear-gradient(90deg, var(--accent-color), #6610f2);
    color: white;
    margin-top: 0.5rem;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.07);
}

.auth-button:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.auth-button:hover:after {
    transform: scaleX(1);
}

.auth-button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.social-login {
    margin-bottom: 1.5rem;
    padding: 0;
    width: 100%;
}

.google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem;
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.google-button:hover {
    border-color: var(--accent-color);
    background-color: rgba(var(--accent-color-rgb, 0, 123, 255), 0.05);
    transform: translateY(-2px);
}

.google-button i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
    color: #ea4335;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.auth-link:hover {
    text-decoration: none;
    color: #0056b3;
}

.auth-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.auth-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.forgot-password {
    display: block;
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--accent-color);
}

/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s;
}

[data-theme="dark"] .loading-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

[data-theme="dark"] .loading-spinner {
    border-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .auth-header, .form-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
}
