body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #0b0f14;
    color: #d6e3f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.panel {
    width: 420px;
    background: #111827;
    border: 1px solid #2b3a4d;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    position: relative;
}

.logo {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    color: #7d8ea3;
    margin-bottom: 25px;
}

.credit-box {
    background: #0f1720;
    border: 1px solid #253244;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
}

.credit-label {
    color: #7d8ea3;
    font-size: 14px;
}

.credit-balance {
    font-size: 42px;
    font-weight: bold;
    margin-top: 8px;
}

.status {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.status span {
    color: #7d8ea3;
}

.online {
    color: #4ade80;
}

.offline {
    color: #ef4444;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

button {
    flex: 1;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
    font-size: 14px;
}

.login {
    background: #2563eb;
    color: white;
}

.login:hover {
    background: #1d4ed8;
}

.logout-btn {
    background: #dc2626;
    color: white;
    flex: 1;
}

.logout-btn:hover {
    background: #b91c1c;
}

.logout {
    background: #dc2626;
    color: white;
}

.logout:hover {
    background: #b91c1c;
}

.footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #607089;
}

/* Modal styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #111827;
    border: 2px solid #2563eb;
    border-radius: 12px;
    padding: 40px;
    width: 360px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.modal-content h2 {
    text-align: center;
    margin: 0 0 20px 0;
    color: #d6e3f0;
    letter-spacing: 2px;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #2b3a4d;
    border-radius: 6px;
    background: #0f1720;
    color: #d6e3f0;
    box-sizing: border-box;
    font-size: 14px;
}

.modal-content input::placeholder {
    color: #607089;
}

.modal-content input:focus {
    outline: none;
    border-color: #2563eb;
}

.modal-content button {
    width: 100%;
    background: #2563eb;
    color: white;
    margin-top: 15px;
}

.modal-content button:hover {
    background: #1d4ed8;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid #2b3a4d;
}

.tab-button {
    flex: 1;
    padding: 10px;
    background: transparent;
    color: #7d8ea3;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: 0.2s;
    border-radius: 0;
}

.tab-button:hover {
    color: #d6e3f0;
}

.tab-button.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

/* Form elements */
.form-box,
.info-box {
    background: #0f1720;
    border: 1px solid #253244;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-box input,
.form-box textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #2b3a4d;
    border-radius: 6px;
    background: #111827;
    color: #d6e3f0;
    box-sizing: border-box;
    font-size: 13px;
    font-family: "Segoe UI", sans-serif;
}

.form-box input::placeholder {
    color: #607089;
}

.form-box input:focus,
.form-box textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #0a0f15;
}

.form-box button,
.info-box button {
    width: 100%;
    background: #2563eb;
    color: white;
    margin-top: 10px;
}

.form-box button:hover,
.info-box button:hover {
    background: #1d4ed8;
}

.info-box p {
    margin: 0 0 10px 0;
    color: #7d8ea3;
    font-size: 13px;
}

#loginError {
    color: #ef4444;
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
}

