/**
 * VeiledEncounter - Auth Styles
 * Login, Register, Forgot Password pages
 */

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

:root {
    --bg-dark: #000;
    --bg-card: #111;
    --bg-input: #1a1a1a;
    --text-primary: #fff;
    --text-secondary: #ccc;
    --text-muted: #888;
    --accent: #4b1f1f;
    --accent-hover: #6b2f2f;
    --success: #4CAF50;
    --danger: #f44336;
    --border: #333;
    --radius: 8px;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 450px;
    text-align: center;
    padding: 20px;
}

/* Hero Image */
.hero-image {
    width: 100%;
    max-width: 350px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

/* Typography */
h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.tagline {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* Auth Box */
.auth-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Forms */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group small {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 4px;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-group.checkbox input {
    margin-top: 3px;
}

.form-group.checkbox label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
}

input::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #45a049;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* Links */
a {
    color: var(--text-primary);
    text-decoration: none;
}

a:hover {
    color: var(--text-secondary);
}

.auth-links {
    margin-bottom: 30px;
}

.auth-links p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-links {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-secondary);
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    text-align: left;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 30px;
    border-radius: var(--radius);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-content h2 {
    color: var(--bg-dark);
    margin-bottom: 15px;
}

.modal-content p {
    color: #333;
    margin-bottom: 25px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-buttons .btn {
    flex: 1;
    max-width: 150px;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .auth-box {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.3rem;
    }
}
