/* Dark Theme Authentication Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #0f172a;
    background-image:
        radial-gradient(at 40% 20%, rgb(120, 119, 198) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgb(120, 119, 198) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgb(7, 89, 133) 0px, transparent 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #f8fafc;
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f8fafc, #cbd5e1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: rgba(15, 23, 42, 0.5);
    color: #f8fafc;
    backdrop-filter: blur(8px);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: #64748b;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    width: 100%;
    padding: 0.875rem;
    background: rgba(15, 23, 42, 0.5);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: 0.75rem;
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: #7c3aed;
    transform: translateY(-1px);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    padding: 0.875rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
}

.divider {
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    background: #0f172a;
    padding: 0 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

/* Logout specific styles */
.logout-message {
    text-align: center;
    margin-bottom: 2rem;
}

.logout-message p {
    color: #cbd5e1;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

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

.logout-actions form {
    width: 100%;
}

.logout-actions a {
    text-align: center;
    text-decoration: none;
}

/* Upload specific styles */
.upload-form {
    margin-bottom: 2rem;
}

.upload-form .form-group p {
    margin-bottom: 1rem;
}

.upload-form .form-group label {
    color: #f8fafc;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* File input styling */
.upload-form input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f8fafc;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.upload-form input[type="file"]:hover {
    border-color: rgba(120, 119, 198, 0.5);
    background: rgba(15, 23, 42, 0.8);
}

.upload-form input[type="file"]:focus {
    outline: none;
    border-color: #7877c6;
    box-shadow: 0 0 0 3px rgba(120, 119, 198, 0.1);
}

/* File input placeholder styling */
.upload-form input[type="file"]::file-selector-button {
    background: linear-gradient(135deg, #7877c6, #6366f1);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-right: 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.upload-form input[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    transform: translateY(-1px);
}

.upload-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.upload-actions a {
    text-decoration: none;
}

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

    h1 {
        font-size: 1.75rem;
    }

    .logout-actions {
        gap: 0.75rem;
    }

    .upload-form input[type="file"]::file-selector-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}