/* Extend the root variables from style.css */
@import url('style.css');

/* Notification Styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.alert-icon {
    margin-right: 10px;
    font-size: 20px;
}

/* Input error state */
.input-error {
    border-color: #c62828 !important;
}

.input-error-message {
    color: #c62828;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

/* Animation */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

/* Mobile-first auth styles */
.auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    background-color: var(--background);
}

.auth-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 25px;
    width: 100%;
    max-width: 500px;
    margin: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
    .auth-page {
        padding: 40px;
    }
}

/* Rest of your existing auth.css */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--background);
    position: relative;
    overflow: hidden;
}

.auth-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.input-group input {
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.forgot-password {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 5px;
    text-decoration: none;
}

.forgot-password:hover {
    color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
}

.redirect-notice {
    text-align: center;
    z-index: 3;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

    /* Add this to your existing styles */
    .password-strength {
        display: flex;
        gap: 4px;
        margin-top: 5px;
        height: 4px;
    }
    
    .strength-bar {
        flex: 1;
        height: 100%;
        background-color: #ddd;
        border-radius: 2px;
        transition: background-color 0.3s ease;
    }
    