/* Roomio Authentication Styles (Login & Register) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

body {
    background: #0b1120;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body.reg-page {
    padding: 24px;
}

.login-card {
    background: rgba(21, 31, 50, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.reg-card {
    background: rgba(21, 31, 50, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.auth-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.auth-top-bar.reg-top-bar {
    margin-bottom: 16px;
}

.lang-switch-btn {
    color: #38bdf8;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 4px 10px;
    border-radius: 12px;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
}

.reg-card .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #34d399;
}

h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.sub {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 28px;
}

.reg-card .sub {
    margin-bottom: 24px;
    line-height: 1.5;
}

.error-msg {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #f87171;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.reg-card .form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.reg-card .form-label {
    margin-bottom: 6px;
}

.form-label span {
    color: #ef4444;
}

.form-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    color: #fff;
    outline: none;
    transition: all 0.2s;
}

.reg-card .form-control {
    padding: 12px 16px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -5px rgba(37, 99, 235, 0.6);
}

.reg-card .btn-submit {
    background: linear-gradient(135deg, #10b981, #059669);
    margin-top: 12px;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.reg-card .btn-submit:hover {
    box-shadow: 0 14px 26px -5px rgba(16, 185, 129, 0.6);
}

.register-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #94a3b8;
}

.register-link a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 700;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #94a3b8;
}

.login-link a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 700;
}

.quick-hint {
    margin-top: 24px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 540px) {
    body.reg-page { padding: 16px; }
    .reg-card { padding: 28px 20px; }
    .grid-2 { grid-template-columns: 1fr; gap: 0; }
    .reg-card h1 { font-size: 22px; }
}

@media (max-width: 480px) {
    body { padding: 16px; }
    .login-card { padding: 28px 20px; }
    h1 { font-size: 22px; }
}


/* ==========================================================================
   Installer Page (install.php)
   ========================================================================== */
.install-page .box {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    max-width: 580px;
    width: 100%;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}
.install-page .logo {
    font-size: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
    display: inline-block;
}
.install-page .sub {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 24px;
}
.install-page .alert {
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}
.install-page .alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #34d399;
}
.install-page .alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #f87171;
}
.install-page .card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}
.install-page .card h3 {
    font-size: 15px;
    color: #e2e8f0;
    margin-bottom: 12px;
    font-weight: 700;
}
.install-page .card ul {
    list-style: none;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.8;
}
.install-page .card li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.install-page .btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.install-page .btn {
    width: 100%;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: block;
}
.install-page .btn-clean {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}
.install-page .btn-clean:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -5px rgba(37, 99, 235, 0.6);
}
.install-page .btn-sample {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}
.install-page .btn-sample:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.install-page .btn-login {
    background: #10b981;
    color: white;
    margin-top: 10px;
}
.install-page .btn-login:hover {
    background: #059669;
}
.install-page .login-info {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 14px;
    margin-top: 20px;
    font-size: 13px;
    color: #fde68a;
    line-height: 1.6;
}
