/* ============================================
   Another Life - Shared Theme
   ============================================ */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0f0;
    min-height: 100vh;
    background: url('/images/bg2.png') no-repeat center center fixed;
    background-size: cover;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 5, 20, 0.55);
    z-index: 0;
}

a { color: #6e8efb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 60px;
    background: rgba(6, 6, 20, 0.92);
    border-bottom: 1px solid rgba(60, 80, 180, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #e0e0f0;
}

.navbar-brand:hover { text-decoration: none; }

.navbar-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.navbar-brand span {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar-links a {
    color: #9999bb;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.5px;
}

.navbar-links a:hover { color: #e0e0f0; text-decoration: none; }
.navbar-links a.active { color: #6e8efb; }

.navbar-links .nav-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #2a4fbb, #4a6fef);
    color: white;
    border-radius: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.navbar-links .nav-btn:hover { opacity: 0.85; color: white; }

.navbar-links .nav-username {
    color: #8888aa;
    font-size: 14px;
}

/* Push page content below fixed nav */
.page-content {
    position: relative;
    z-index: 1;
    padding-top: 60px;
    min-height: 100vh;
}

/* ============================================
   Container / Card
   ============================================ */
.container {
    position: relative;
    z-index: 1;
    background: rgba(10, 10, 30, 0.85);
    border: 1px solid rgba(60, 80, 180, 0.3);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 0 40px rgba(30, 50, 150, 0.2);
}

/* ============================================
   Logo Block
   ============================================ */
.logo {
    text-align: center;
    margin-bottom: 10px;
}

.logo img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 6px;
}

.logo p {
    color: #8888aa;
    font-size: 14px;
    margin-top: 4px;
}

/* ============================================
   Typography
   ============================================ */
h2 {
    text-align: center;
    font-size: 20px;
    margin: 20px 0;
    color: #c0c0e0;
    font-weight: 400;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 13px;
    color: #9999bb;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    background: rgba(20, 20, 50, 0.9);
    border: 1px solid rgba(80, 80, 140, 0.4);
    border-radius: 6px;
    color: #e0e0f0;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #6e8efb;
    box-shadow: 0 0 0 2px rgba(110, 142, 251, 0.15);
}

input::placeholder {
    color: #555570;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 13px 30px;
    background: linear-gradient(135deg, #2a4fbb, #4a6fef);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    letter-spacing: 1px;
    text-decoration: none;
    text-align: center;
}

.btn:hover { opacity: 0.9; transform: translateY(-1px); color: white; text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-full { width: 100%; }

.btn-secondary {
    display: inline-block;
    padding: 13px 30px;
    background: transparent;
    border: 2px solid rgba(110, 142, 251, 0.5);
    border-radius: 6px;
    color: #c0c0e0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, transform 0.1s;
    letter-spacing: 1px;
    text-decoration: none;
    text-align: center;
}

.btn-secondary:hover {
    border-color: #6e8efb;
    color: #e0e0f0;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-secondary:active { transform: translateY(0); }

/* ============================================
   Status Messages
   ============================================ */
.status {
    text-align: center;
    margin-top: 16px;
    min-height: 20px;
    font-size: 14px;
}

.status.error { color: #ff6b6b; }
.status.success { color: #69db7c; }
.status.loading { color: #8888cc; }

/* ============================================
   Links & Notes
   ============================================ */
.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #7777aa;
}

.note {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(80, 80, 140, 0.2);
    font-size: 12px;
    color: #666688;
}

/* ============================================
   Hero Section (Home Page)
   ============================================ */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    text-align: center;
    padding: 40px 20px;
}

.hero-content {
    max-width: 640px;
}

.hero-logo img {
    width: 260px;
    height: 260px;
    object-fit: contain;
    margin-bottom: 10px;
}

.hero-tagline {
    font-size: 18px;
    color: #8888aa;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 16px;
    line-height: 1.7;
    color: #a0a0c0;
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-login-link {
    font-size: 14px;
    color: #7777aa;
    margin-top: 16px;
}

/* ============================================
   Form Page Layout (Login, Register)
   ============================================ */
.form-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    padding: 40px 20px;
}

/* ============================================
   Dashboard
   ============================================ */
.dashboard-page {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.dashboard-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
}

.dashboard-welcome {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-welcome h1 {
    font-size: 26px;
    font-weight: 600;
    color: #e0e0f0;
    margin-bottom: 6px;
}

.dashboard-welcome p {
    color: #8888aa;
    font-size: 14px;
}

.dashboard-card {
    background: rgba(10, 10, 30, 0.85);
    border: 1px solid rgba(60, 80, 180, 0.3);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0 40px rgba(30, 50, 150, 0.2);
    margin-bottom: 20px;
}

.dashboard-card h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6e8efb;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(60, 80, 180, 0.2);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(40, 40, 80, 0.3);
}

.info-row:last-child { border-bottom: none; }

.info-label {
    font-size: 13px;
    color: #9999bb;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 15px;
    color: #e0e0f0;
}

.dashboard-actions {
    text-align: center;
    margin-top: 24px;
}

.btn-logout {
    padding: 10px 30px;
    background: transparent;
    border: 1px solid rgba(255, 100, 100, 0.4);
    border-radius: 6px;
    color: #ff8888;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    letter-spacing: 0.5px;
}

.btn-logout:hover {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.6);
}

/* Loading state */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #8888cc;
    font-size: 16px;
}

/* ============================================
   Site Footer
   ============================================ */
.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 20px;
    font-size: 12px;
    color: #444460;
}

.site-footer span { color: #555570; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 480px) {
    .navbar { padding: 0 16px; }
    .navbar-links { gap: 14px; }
    .navbar-links a { font-size: 13px; }
    .navbar-brand span { font-size: 14px; letter-spacing: 2px; }

    .container { padding: 30px 24px; }
    .hero-logo img { width: 180px; height: 180px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn,
    .hero-buttons .btn-secondary { width: 100%; max-width: 280px; }
}
