/* Login Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #ffffff;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: #1e1e1e;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid #333333;
    overflow: hidden;
    position: relative;
}

.login-header {
    background: #212121;
    color: #ffffff;
    padding: 40px 30px 30px;
    text-align: center;
    border-bottom: 1px solid #333333;
}

.login-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ff9800;
}

.login-header .site-logo {
    max-height: 110px;
    width: auto;
    margin: 0 auto;
    mix-blend-mode: screen;
}

.login-header p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

.auth-form {
    padding: 20px 30px 30px;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #ff9800;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #aaaaaa;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #333333;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #2c2c2c;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #ff9800;
    background: #2a2a2a;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.15);
}

.form-group input.error {
    border-color: #f44336;
    background: #2c2c2c;
}

.error-message {
    display: block;
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 20px;
}

.password-requirements {
    margin-top: 12px;
    padding: 16px;
    background: #2a2a2a;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.password-requirements p {
    font-weight: 500;
    margin-bottom: 8px;
    color: #aaaaaa;
    font-size: 0.9rem;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
}

.password-requirements li {
    padding: 4px 0;
    font-size: 0.85rem;
    color: #aaaaaa;
    position: relative;
    padding-left: 20px;
}

.password-requirements li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

.password-requirements li.valid::before {
    content: '✓';
    color: #4caf50;
}

/* Patreon Info Section */
.patreon-info {
    margin-top: 12px;
    padding: 14px 16px;
    background: rgba(249, 104, 84, 0.1);
    border-radius: 8px;
    border-left: 4px solid #f96854;
}

.patreon-info p {
    font-size: 0.85rem;
    color: #aaaaaa;
    margin-bottom: 8px;
    line-height: 1.5;
}

.patreon-info p:last-child {
    margin-bottom: 0;
}

.patreon-info strong {
    color: #ffffff;
    font-weight: 600;
}

.patreon-link-inline {
    color: #f96854;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.patreon-link-inline:hover {
    color: #ff424d;
    border-bottom-color: #ff424d;
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.auth-btn.loading .btn-text {
    display: none;
}

.auth-btn.loading .btn-loading {
    display: inline;
}

.form-footer {
    text-align: center;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.form-footer p {
    color: #aaaaaa;
    font-size: 0.9rem;
}

.form-footer a {
    color: #ff9800;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #ff5722;
    text-decoration: underline;
}

/* Register Link Button */
.register-link-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #ff9800;
    border: 1px solid #ff9800;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
}

.register-link-btn:hover {
    background: #2a2a2a;
    border-color: #ff5722;
    color: #ff5722;
}

.register-link-btn:active {
    transform: scale(0.98);
}

.register-link-btn i {
    font-size: 1rem;
}

.message-container {
    margin: 20px 30px 0;
    padding: 0;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease-out;
}

.message.success {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.message.error {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        border-radius: 12px;
    }
    
    .login-header {
        padding: 30px 20px 25px;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .auth-form {
        padding: 30px 20px;
    }
    
    .auth-form h2 {
        font-size: 1.5rem;
    }
}

/* Guest Access Section */
.guest-access-section {
    padding: 20px 30px 15px;
    text-align: center;
}

.guest-access-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #ff9800;
    border: 1px solid #ff9800;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
}

.guest-access-btn:hover {
    background: #2a2a2a;
    border-color: #ff5722;
    color: #ff5722;
}

.guest-access-btn:active {
    transform: scale(0.98);
}

.guest-access-btn i {
    font-size: 1rem;
}

.guest-access-info {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #777777;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 30px;
    color: #777777;
    font-size: 0.9rem;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #333333;
}

.divider span {
    padding: 0 15px;
}
