/* Melbourne Online — Customer Portal
   Brand: melbourneonline.com.au
   Fonts: Kantumruy Pro (headings/logo), Gudea (body)
   --------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Gudea:wght@400;700&family=Kantumruy+Pro:wght@400;600;700&display=swap');

/* ── Reset & Base ───────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Gudea', Arial, sans-serif;
    color: #555555;
    background: #f5f5f5;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Kantumruy Pro', 'Gudea', sans-serif;
    color: #333333;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }

p { margin-bottom: 1em; }

a {
    color: #e8740c;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #c96109;
}

img { max-width: 100%; }

/* ── Layout ─────────────────────────────────────────── */

.portal-main {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ── Header ─────────────────────────────────────────── */

.portal-header {
    background: #ffffff;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.portal-logo {
    text-decoration: none;
    line-height: 1;
    display: flex;
    align-items: center;
}

.portal-logo img {
    height: 40px;
    width: auto;
}

.portal-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.portal-nav a {
    text-decoration: none;
    color: #555555;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.portal-nav a:hover,
.portal-nav a.active {
    color: #e8740c;
}

/* ── Cards ──────────────────────────────────────────── */

.portal-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #e8740c;
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
}

.portal-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.portal-card h2,
.portal-card h3 {
    margin-top: 0;
}

/* ── Login Form ─────────────────────────────────────── */

.login-form {
    max-width: 440px;
    margin: 60px auto 0;
}

.login-form h1 {
    text-align: center;
    margin-bottom: 8px;
}

.login-form p.subtitle {
    text-align: center;
    color: #888888;
    margin-bottom: 28px;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-family: 'Gudea', Arial, sans-serif;
    font-size: 16px;
    color: #333333;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #e8740c;
    box-shadow: 0 0 0 3px rgba(232, 116, 12, 0.15);
}

.form-group input::placeholder {
    color: #aaaaaa;
}

/* ── Buttons ────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: 'Gudea', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.4;
}

.btn-primary {
    background: #e8740c;
    color: #ffffff;
    border-color: #e8740c;
}

.btn-primary:hover {
    background: #c96109;
    border-color: #c96109;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #e8740c;
    border: 2px solid #e8740c;
}

.btn-outline:hover {
    background: #e8740c;
    color: #ffffff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Badges ─────────────────────────────────────────── */

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.5;
    white-space: nowrap;
}

.badge-active {
    background: #27ae60;
    color: #ffffff;
}

.badge-suspended {
    background: #e67e22;
    color: #ffffff;
}

.badge-revoked {
    background: #e74c3c;
    color: #ffffff;
}

.badge-lifetime {
    background: #1b2a4a;
    color: #ffffff;
}

.badge-monthly,
.badge-yearly {
    background: #e8740c;
    color: #ffffff;
}

/* ── License Card Content ───────────────────────────── */

.license-info {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px 16px;
    align-items: center;
}

.license-info .info-label {
    font-size: 13px;
    font-weight: 700;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

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

.license-key {
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    background: #f7f7f7;
    padding: 8px 12px;
    border-radius: 6px;
    word-break: break-all;
    display: inline-block;
}

.license-key-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-family: 'Gudea', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #e8740c;
    border: 2px solid #e8740c;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1.4;
}

.copy-btn:hover {
    background: #e8740c;
    color: #ffffff;
}

/* ── Alerts / Messages ──────────────────────────────── */

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid transparent;
    font-size: 15px;
    line-height: 1.5;
}

.alert-success {
    background: #f0fff4;
    border-left-color: #27ae60;
    color: #1e7e46;
}

.alert-error {
    background: #fff5f5;
    border-left-color: #e74c3c;
    color: #c0392b;
}

.alert-info {
    background: #f0f6ff;
    border-left-color: #3498db;
    color: #2471a3;
}

/* ── Footer ─────────────────────────────────────────── */

.portal-footer {
    background: #1b2a4a;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    margin-top: auto;
}

.portal-footer a {
    color: #e8740c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.portal-footer a:hover {
    color: #f4a259;
}

.portal-footer .footer-text {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Utility Classes ────────────────────────────────── */

.text-center { text-align: center; }
.text-muted  { color: #888888; }
.text-small  { font-size: 13px; }
.text-orange { color: #e8740c; }
.text-navy   { color: #1b2a4a; }
.text-success { color: #27ae60; }
.text-error  { color: #e74c3c; }

.mt-0  { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-0  { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.hidden { display: none; }

/* ── Responsive (640px) ─────────────────────────────── */

@media (max-width: 640px) {

    .portal-header {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 15px 20px;
    }

    .portal-nav {
        gap: 16px;
    }

    .portal-main {
        padding: 20px 15px;
    }

    .portal-card {
        padding: 16px;
    }

    .login-form {
        max-width: 100%;
        margin-top: 30px;
    }

    .license-key {
        font-size: 14px;
    }

    .license-info {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }

    .license-info .info-label {
        margin-top: 10px;
    }

    .license-key-row {
        flex-direction: column;
        align-items: flex-start;
    }

    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
}
