/* EnglishSpeak — normalize text size in Android in-app browsers (Zalo, etc.) */
html {
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

:root {
    --primary: #5a55e7;
    --text: #20233d;
    --muted: #737793;
    --border: #e5e7f1;
    --surface: #ffffff;
    --background: #f4f5fb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Segoe UI", system-ui, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(90, 85, 231, .12), transparent 30rem),
        var(--background);
}

.profile-page {
    width: min(700px, 100%);
    margin: 0 auto;
    padding: 36px 18px;
}

.profile-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: 0 20px 60px rgba(41, 45, 90, .1);
}

.eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1 {
    margin: 5px 0 8px;
    font-size: clamp(28px, 5vw, 38px);
}

header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.student-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.student-summary div {
    padding: 15px;
    border-radius: 17px;
    background: #f5f5ff;
}

.student-summary span,
.student-summary strong {
    display: block;
}

.student-summary span {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
}

form {
    display: grid;
    gap: 18px;
}

label > span {
    display: block;
    margin-bottom: 7px;
    font-weight: 800;
}

input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 15px;
    outline: none;
    font: inherit;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(90, 85, 231, .12);
}

small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

button {
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #7772f1);
    box-shadow: 0 12px 28px rgba(90, 85, 231, .24);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.notice {
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 14px;
}

.notice.success {
    color: #17643c;
    background: #e9f8ef;
}

.notice.error {
    color: #9a2e2e;
    background: #fff0f0;
}

@media (max-width: 560px) {
    .profile-page { padding: 18px 12px; }
    .profile-card { padding: 20px; border-radius: 21px; }
    .student-summary { grid-template-columns: 1fr; }
}
