/* Authentication Page CSS */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Rajdhani:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #f4f1de;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px);
    pointer-events: none;
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0) }
    10% { transform: translate(-5%, -10%) }
    20% { transform: translate(-15%, 5%) }
    30% { transform: translate(7%, -25%) }
    40% { transform: translate(-5%, 25%) }
    50% { transform: translate(-15%, 10%) }
    60% { transform: translate(15%, 0%) }
    70% { transform: translate(0%, 15%) }
    80% { transform: translate(3%, 35%) }
    90% { transform: translate(-10%, 10%) }
}

.container {
    position: relative;
    z-index: 1;
}

.form-wrapper {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 20px;
    border: 3px solid #87CEEB;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(135, 206, 235, 0.2);
    min-width: 450px;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: #87CEEB;
    letter-spacing: 8px;
    text-shadow: 0 0 20px rgba(135, 206, 235, 0.5);
}

.tagline {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #e0d5c7;
    letter-spacing: 3px;
}

.form-container h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #87CEEB;
    letter-spacing: 3px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input {
    padding: 15px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid rgba(135, 206, 235, 0.3);
    border-radius: 8px;
    color: #f4f1de;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #87CEEB;
    background: rgba(50, 50, 50, 0.9);
    box-shadow: 0 0 15px rgba(135, 206, 235, 0.3);
}

input::placeholder {
    color: rgba(244, 241, 222, 0.5);
}

button {
    padding: 15px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, #5F9EA0, #87CEEB);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before {
    width: 400px;
    height: 400px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.5);
}

button:active {
    transform: translateY(0);
}

.switch-form {
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    color: #e0d5c7;
}

.switch-form a {
    color: #87CEEB;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.switch-form a:hover {
    color: #5F9EA0;
    text-decoration: underline;
}

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    animation: slideIn 0.3s ease;
}

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

.message.error {
    background: rgba(220, 53, 69, 0.2);
    border: 2px solid #dc3545;
    color: #ff6b6b;
}

.message.success {
    background: rgba(40, 167, 69, 0.2);
    border: 2px solid #28a745;
    color: #51cf66;
}

@media (max-width: 768px) {
    .form-wrapper {
        min-width: 90%;
        padding: 30px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
}
