:root {
    --melixia-dark: #1e1e3f;
    --melixia-blue: #00aeef;
    --melixia-gold: #ffc300;
    --melixia-cream: #fff4e1;
    --melixia-warm: #ff7a00;
    --melixia-text: #1e1e3f;
    --melixia-muted: #69768f;
}

* {
    box-sizing: border-box;
}

body.auth-body {
    min-height: 100vh;
    font-family: "Open Sans", sans-serif;
    color: var(--melixia-text);
    background:
        radial-gradient(circle at 10% 10%, rgba(0, 174, 239, 0.24), transparent 42%),
        radial-gradient(circle at 90% 90%, rgba(255, 195, 0, 0.2), transparent 36%),
        linear-gradient(140deg, #f5f9ff 0%, #eef3ff 48%, #fff8e8 100%);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.brand-panel {
    border-radius: 24px;
    background: linear-gradient(160deg, #161633, #1f1f4f 62%, #13283f);
    box-shadow: 0 30px 60px rgba(17, 18, 41, 0.24);
    color: #fff;
    padding: 2rem;
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

.brand-panel::before,
.brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.brand-panel::before {
    width: 240px;
    height: 240px;
    background: rgba(0, 174, 239, 0.18);
    top: -90px;
    left: -80px;
}

.brand-panel::after {
    width: 200px;
    height: 200px;
    background: rgba(255, 195, 0, 0.2);
    bottom: -80px;
    right: -70px;
}

.brand-panel > * {
    position: relative;
    z-index: 1;
}

.brand-logo {
    width: 220px;
    max-width: 100%;
    margin-bottom: 1.25rem;
}

.brand-title {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.brand-lead {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.5rem;
}

.brand-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.brand-list li {
    margin-bottom: 0.85rem;
    display: flex;
    align-items: start;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.88);
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 0.45rem;
    background: linear-gradient(45deg, var(--melixia-gold), var(--melixia-blue));
    box-shadow: 0 0 14px rgba(255, 195, 0, 0.7);
    flex: 0 0 auto;
}

.auth-card {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(17, 18, 41, 0.15);
    overflow: hidden;
}

.auth-card .card-body {
    padding: 2rem;
}

.auth-tabs {
    border: 0;
    background: #eef3ff;
    border-radius: 14px;
    padding: 0.35rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.auth-tabs .nav-link {
    border: 0;
    border-radius: 10px;
    color: var(--melixia-muted);
    font-weight: 700;
    padding: 0.7rem 1rem;
}

.auth-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, var(--melixia-blue), #2196f3);
    box-shadow: 0 8px 16px rgba(0, 174, 239, 0.35);
}

.form-label {
    font-weight: 600;
    font-size: 0.92rem;
}

.form-control,
.form-select {
    border: 1px solid #d5deef;
    border-radius: 12px;
    padding: 0.72rem 0.9rem;
    color: var(--melixia-text);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--melixia-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.14);
}

.btn-melixia {
    border: 0;
    border-radius: 12px;
    padding: 0.78rem 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(92deg, var(--melixia-dark), #2f2f68);
    box-shadow: 0 10px 20px rgba(30, 30, 63, 0.28);
}

.btn-melixia:hover,
.btn-melixia:focus {
    color: #fff;
    background: linear-gradient(92deg, #151530, #24245a);
}

.btn-gold {
    border: 0;
    border-radius: 12px;
    padding: 0.78rem 1rem;
    font-weight: 700;
    color: #181818;
    background: linear-gradient(92deg, var(--melixia-gold), #ffd44b);
    box-shadow: 0 10px 20px rgba(255, 195, 0, 0.32);
}

.btn-gold:hover,
.btn-gold:focus {
    color: #181818;
    background: linear-gradient(92deg, #f2b800, #ffca2b);
}

.auth-link {
    color: var(--melixia-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    color: #0088bb;
    text-decoration: underline;
}

.auth-message {
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font-size: 0.93rem;
    display: none;
}

.auth-message.show {
    display: block;
}

.auth-message.info {
    background: #e6f6fd;
    color: #065a7c;
}

.auth-message.success {
    background: #e6f7eb;
    color: #1d6b36;
}

.auth-message.error {
    background: #fde8e9;
    color: #8a1d2a;
}

.auth-message.warning {
    background: #fff6de;
    color: #7c5f02;
}

.modal-content {
    border: 0;
    border-radius: 20px;
}

.modal-header {
    border-bottom: 1px solid #eef1f8;
}

.modal-footer {
    border-top: 1px solid #eef1f8;
}

.auth-footer {
    text-align: center;
    margin-top: 1.4rem;
    color: #6e7890;
    font-size: 0.86rem;
}

@media (max-width: 991.98px) {
    .auth-shell {
        padding: 1rem 0 2rem;
    }

    .brand-panel {
        min-height: auto;
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .auth-card .card-body,
    .brand-panel {
        padding: 1.35rem;
        border-radius: 18px;
    }

    .brand-title {
        font-size: 1.45rem;
    }
}
