/* ===========================================================
   IPC ID Card — Standalone Styles
   No Bootstrap, no jQuery UI dependencies.
   =========================================================== */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto Condensed', sans-serif;
    background: #050a2f url('../img/bg.jpg');
    color: #333;
}

button { outline: none; cursor: pointer; }

a:link, a:active, a:visited {
    color: #666;
    text-decoration: underline;
}

/* ----- Form controls ----- */
.form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}
.form-control:focus {
    border-color: #4a67e6;
    box-shadow: 0 0 0 2px rgba(74,103,230,.25);
}
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #f0f0f0 inset;
}

/* ----- Buttons ----- */
.btn-danger, .btn-secondary {
    display: inline-block;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s;
}

.btn-danger {
    background-color: #d9534f;
    color: #fff;
    padding: 6px 12px;
    font-size: 14px;
}
.btn-danger:hover { background-color: #c9302c; }

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    padding: 6px 14px;
    font-size: 14px;
}
.btn-secondary:hover { background-color: #5a6268; color: #fff; }

/* ----- App shell ----- */
.container-app {
    width: 100%;
    height: 100%;
    padding: 14px;
}

.rotate {
    color: #fff;
    font-size: 1em;
    text-align: center;
}

/* ----- Login / message screen ----- */
.screen {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 20px 14px;
    text-align: center;
    box-sizing: border-box;
}

.brand-logo {
    max-width: 200px;
    height: auto;
    margin: 8px auto 6px;
    display: block;
}

.brand-tagline {
    font-size: 13px;
    color: #8b9bce;
    margin-bottom: 22px;
    letter-spacing: 0.3px;
}

.login-form { display: block; }

.login-card {
    background-color: #0d1747;
    border: 2px solid #4a67e6;
    border-radius: 16px;
    padding: 20px 18px 18px;
    text-align: left;
}

.field {
    margin-bottom: 14px;
}

.field-label {
    display: block;
    font-size: 14px;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 700;
}

.field-input {
    width: 100%;
    height: 48px;
    background-color: #050a2f;
    border: 1px solid #1f2d6b;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}
.field-input:focus {
    border-color: #4a67e6;
    box-shadow: 0 0 0 2px rgba(74, 103, 230, 0.25);
}
.field-input::placeholder {
    color: #4a5891;
    font-weight: 400;
}
.field-input.has-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.field-error {
    color: #fca5a5;
    font-size: 13px;
    font-weight: 500;
    margin-top: 6px;
    line-height: 1.3;
}

.form-alert {
    background-color: rgba(239, 68, 68, 0.12);
    border: 1px solid #ef4444;
    color: #fecaca;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 14px;
    line-height: 1.4;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0 14px;
    font-size: 14px;
    color: #c5cce8;
    font-weight: 400;
    cursor: pointer;
}
.remember-row input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #4a67e6;
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    height: 48px;
    background-color: #4a67e6;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}
.btn-primary:hover:not(:disabled) { background-color: #3853d4; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.forgot-block {
    margin-top: 18px;
    padding: 6px;
    text-align: center;
}
.forgot-prompt {
    font-size: 12px;
    color: #8b9bce;
    margin-bottom: 4px;
}
.forgot-link {
    font-size: 14px;
    color: gold;
    text-decoration: none;
    font-weight: 500;
}
.forgot-link:link, .forgot-link:visited, .forgot-link:active { color: gold; }
.forgot-link:hover { text-decoration: underline; }

.back-link {
    display: inline-block;
    margin-top: 6px;
    font-weight: normal;
}

/* ----- Alert / info blocks ----- */
.alert-card {
    border-radius: 8px;
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    padding: 8px;
    text-align: left;
}

.lookup-table {
    width: 100%;
    border-collapse: collapse;
}
.lookup-table tr:first-child {
    background-color: #3366ff;
    color: #fff;
}
.lookup-table td { padding: 6px; }

/* ----- The ID card ----- */
.card-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
}

.id-card {
    box-shadow: 0 0 10px #000;
    position: relative;
    text-align: center;
    width: 100%;
    background-color: #000;
    border: 2px solid #333;
    border-left: 0;
    border-right: 0;
    border-radius: 25px;
    height: 500px;
}

.id-header {
    position: absolute;
    top: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 1.6em;
    font-weight: bold;
    margin-top: 4px;
}

.id-body {
    position: absolute;
    top: 40px;
    width: 98%;
    height: 75%;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
}

.id-logo { margin-top: 30px; }
.badge-row { width: 100%; height: 72px; }
.badge-icon { margin-top: 10px; }

.id-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}

.id-number {
    margin: 0;
    padding: 0;
    color: #fff;
    font-weight: bold;
    font-size: 4em;
    width: 300px;
}

/* Member tier styling */
.basic, .vip {
    font-size: 1.2em;
    color: gold;
    font-weight: bold;
    text-shadow: 1px 1px #000;
}
.banned {
    font-size: 1.2em;
    color: #999;
    font-weight: bold;
    text-shadow: 1px 1px #000;
}
.nickbasic {
    font-size: 1.3em;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px #000;
}
.nickvip {
    font-size: 1.3em;
    color: #000;
    font-weight: bold;
}

.card-actions {
    text-align: center;
    margin-top: 10px;
}

.copy {
    width: 100%;
    text-align: center;
    font-size: .8em;
    color: #ccc;
}

.version {
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #8b9bce;
    margin-top: 4px;
}

/* ----- Native <dialog> styling ----- */
dialog {
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;
    max-width: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,.5);
}
dialog::backdrop {
    background: rgba(0,0,0,.5);
}
dialog h3 {
    margin-top: 0;
    text-align: center;
}
dialog p {
    text-align: center;
}
dialog .dialog-close {
    display: block;
    margin: 12px auto 0;
    padding: 8px 24px;
    background: #4a67e6;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}