/* Authentication Pages Styles */

.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: white;
    font-family: 'Arial', sans-serif;
}

.auth-card {
    background: rgba(0, 0, 0, 0.8);
    padding: 3rem 4rem;
    border-radius: 15px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    max-width: 650px;
    max-height: 90vh;
    text-align: center;
    overflow-y: auto;
    box-sizing: border-box;
}

.auth-card h1 {
    color: #00ffff;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    color: #ccc;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    padding: 7px;
    border: 2px solid #333;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.auth-btn {
    padding: 12px 24px;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    color: white;
    border: 2px solid #00ffff;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.auth-btn:hover {
    background: linear-gradient(45deg, #0f0f23, #1a1a2e);
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.5),
        0 5px 15px rgba(0, 255, 255, 0.3);
    border-color: #00cccc;
}

.auth-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.toggle-auth {
    margin-top: 1.5rem;
    color: #ccc;
}

.toggle-auth a {
    color: #00ffff;
    text-decoration: none;
    font-weight: bold;
}

.toggle-auth a:hover {
    text-decoration: underline;
}

.error-message {
    color: #ff4444;
    background: linear-gradient(
        135deg,
        rgba(255, 68, 68, 0.15),
        rgba(255, 68, 68, 0.05)
    );
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 68, 68, 0.3);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.2);
    display: none;
    position: absolute;
    top: -10px;
    left: -5px;
    right: -5px;
    z-index: 100;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: slideInDown 0.4s ease-out;
    cursor: pointer;
    transition: all 0.2s ease;
}

.error-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 68, 68, 0.3);
}

.success-message {
    color: #44ff44;
    background: linear-gradient(
        135deg,
        rgba(68, 255, 68, 0.15),
        rgba(68, 255, 68, 0.05)
    );
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(68, 255, 68, 0.3);
    box-shadow: 0 4px 12px rgba(68, 255, 68, 0.2);
    display: none;
    position: absolute;
    top: -10px;
    left: -5px;
    right: -5px;
    z-index: 100;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: slideInDown 0.4s ease-out;
    cursor: pointer;
    transition: all 0.2s ease;
}

.success-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(68, 255, 68, 0.3);
}

.message-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 1.1em;
}

.message-container {
    position: relative;
    height: 0px;
    margin-bottom: 1rem;
}

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

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

.message-fadeout {
    animation: fadeOut 0.3s ease-in forwards;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}
