/* Auth Page Styles - High Contrast & Clean */
.auth-container {
    max-width: 450px;
    margin: 4rem auto;
    padding: 3rem;
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #000000;
    /* Solid border for high contrast */
}

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

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #000000;
    /* Pure black */
    line-height: 1.2;
}

.auth-header p {
    color: #000000;
    /* Pure black */
    font-size: 1.1rem;
    font-weight: 500;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    /* Pure black */
    margin-left: 0.2rem;
}

.form-group input {
    padding: 1rem;
    background: #ffffff;
    border: 2px solid #000000;
    /* Solid black border */
    border-radius: 0.75rem;
    color: #000000;
    /* Pure black text */
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.auth-btn {
    margin-top: 1rem;
    padding: 1rem;
    background: #000000;
    /* Black background for main button */
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    background: #333333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.social-auth {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tg-login-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.875rem;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 0.75rem;
    color: #000000;
    /* Black text */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

/* Icons in black for consistency */
.social-btn svg {
    fill: #000000;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 1rem;
    color: #000000;
    /* Black text */
    font-weight: 500;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 700;
}

.error-message {
    color: #dc2626;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-top: 0.3rem;
    display: none;
    background: #fee2e2;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 2px solid #dc2626;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-container {
    animation: fadeIn 0.4s ease-out;
}

/* Toast Notification Styles */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 1rem 2rem;
    background: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    pointer-events: auto;
}

.toast.error {
    background: #dc2626;
    border-color: #ffffff;
}

.toast.success {
    background: #000000;
    border-color: #22c55e;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.fade-out {
    animation: fadeOut 0.4s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: 1.5rem 1rem;
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 2rem;
    }
}