/* reg_style.css — Login page
   Font: Manrope → system-ui (same stack as index.php / style.css)
   No external font import — CDN is blocked on the server.
*/

/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #ecf0f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont,
                 'Segoe UI', sans-serif;
    font-size: 16px;           /* base — up from implicit 14px */
    padding: 24px 16px;        /* breathing room on small phones */
}

/* ── Login card ─────────────────────────────────────────────── */
.container {
    position: relative;
    width: 100%;
    max-width: 400px;          /* was fixed 350px */
    border-radius: 20px;
    padding: 40px 36px;
    background: #ecf0f3;
    box-shadow: 14px 14px 20px #cbced1, -14px -14px 20px #ffffff;
}

/* ── Logo ───────────────────────────────────────────────────── */
.brand-logo {
    height: 108px;
    width: 108px;
    background: url("../img/logo/logo_minika_100.png") center / cover no-repeat;
    margin: 0 auto 4px;
    border-radius: 50%;
    box-shadow: 7px 7px 10px #cbced1, -7px -7px 10px #ffffff;
}

/* ── Titles ─────────────────────────────────────────────────── */
.page-title {
    font-size: 13px;
    font-weight: 700;
    color: #1DA1F2;
    margin: 0 0 6px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: .7;
}

.brand-title {
    margin: 0 0 8px;
    font-weight: 900;
    font-size: 2rem;           /* was 1.8rem */
    color: #1DA1F2;
    letter-spacing: 1px;
    text-align: center;
}

/* ── Form fields area ───────────────────────────────────────── */
.inputs {
    text-align: left;
    margin-top: 28px;
}

/* Common reset for all interactive elements */
label, input, button, .forgot-password {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    outline: none;
    box-sizing: border-box;
}

/* ── Labels ─────────────────────────────────────────────────── */
label {
    font-size: 15px;           /* was default ~13px */
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
label:nth-of-type(2) {
    margin-top: 16px;
}

/* ── Inputs ─────────────────────────────────────────────────── */
input {
    background: #ecf0f3;
    padding: 0 20px;
    height: 52px;              /* was 50px */
    font-size: 16px;           /* 16px prevents iOS auto-zoom */
    font-family: inherit;
    border-radius: 50px;
    box-shadow: inset 6px 6px 6px #cbced1, inset -6px -6px 6px #ffffff;
    color: #333;
    transition: box-shadow .2s;
}
input:focus {
    box-shadow: inset 4px 4px 8px #b8bec5, inset -4px -4px 8px #ffffff,
                0 0 0 3px rgba(29,161,242,.18);
}
input::placeholder {
    color: #aaa;
    font-size: 14px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.button-style {
    display: block;
    width: 100%;
    height: 48px;              /* was 40px */
    text-align: center;
    font-size: 16px;           /* was 14px */
    font-weight: 700;
    font-family: inherit;
    line-height: 48px;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 6px 6px 6px #cbced1, -6px -6px 6px #ffffff;
    transition: background .25s, box-shadow .25s, transform .1s;
    text-decoration: none;
    border: none;
}

/* Login button */
button.button-style,
button[type="submit"] {
    color: #ffffff;
    background: #1DA1F2;
    margin-top: 24px;
}
button.button-style:hover,
button[type="submit"]:hover {
    background: #0d8de0;
    box-shadow: 3px 3px 8px #cbced1, -3px -3px 8px #ffffff;
    transform: translateY(-1px);
}
button.button-style:active,
button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Forgot password link */
.forgot-password {
    background: #b8d4e8;
    color: #ffffff;
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.forgot-password:hover {
    background: #1DA1F2;
    box-shadow: 3px 3px 8px #cbced1, -3px -3px 8px #ffffff;
    transform: translateY(-1px);
}

/* ── Flash messages ─────────────────────────────────────────── */
#flash-message-container {
    min-height: 0;
}

.success-message,
.error-message {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 15px;           /* was 14px */
    font-weight: 600;
    text-align: center;
    border-radius: 10px;
    box-shadow: 3px 3px 6px #cbced1, -3px -3px 6px #ffffff;
    line-height: 1.4;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

/* Legacy class name used in inline PHP */
.error_message {
    position: absolute;
    z-index: 100;
    background: #fff;
    opacity: .88;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
}

/* ════════════════════════════════════════════════════════════
   MOBILE  ≤ 480px
════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    body {
        padding: 16px 12px;
        align-items: flex-start;   /* card starts near top, not dead-centre */
        padding-top: 32px;
    }

    .container {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .brand-logo {
        height: 90px;
        width: 90px;
    }

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

    .page-title {
        font-size: 11px;
    }

    input {
        height: 50px;
        font-size: 16px;   /* keep 16px — prevents iOS zoom */
    }

    .button-style {
        height: 50px;
        line-height: 50px;
        font-size: 16px;
    }

    label {
        font-size: 14px;
    }
}

/* ════════════════════════════════════════════════════════════
   VERY SMALL  ≤ 360px
════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
    .container {
        padding: 28px 18px;
    }
    .brand-title { font-size: 1.5rem; }
}
