
:root {
    --navy: #14263f;
    --blue: #2563eb;
    --background: #f4f7fb;
    --text: #1f2937;
    --muted: #64748b;
    --border: #e2e8f0;
    --green: #15803d;
    --red: #b91c1c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
}

.container {
    max-width: 620px;
    margin: 0 auto;
    padding: 65px 20px 30px;
}

.logo {
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--navy);
    margin-bottom: 35px;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 42px;
    box-shadow: 0 15px 45px rgba(20, 38, 63, .06);
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: #e8f0ff;
    color: var(--blue);
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 25px;
}

.icon.success {
    background: #dcfce7;
    color: var(--green);
}

.icon.error {
    background: #fee2e2;
    color: var(--red);
}

h1 {
    color: var(--navy);
    font-size: 29px;
    line-height: 1.25;
    margin: 0 0 15px;
}

.intro {
    color: var(--muted);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 30px;
}

label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

input {
    display: block;
    width: 100%;
    padding: 15px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-size: 16px;
    margin-bottom: 18px;
    transition: border-color .2s, box-shadow .2s;
}

input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

button {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

button:hover {
    background: #29466b;
}

.result {
    margin: 25px 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.result-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 17px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.result-row:last-child {
    border-bottom: none;
}

.result-row span {
    color: var(--muted);
}

.result-row strong {
    text-align: right;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    margin-top: 35px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 600px) {
    .container {
        padding-top: 35px;
    }

    .card {
        padding: 28px 22px;
    }

    h1 {
        font-size: 25px;
    }

    .result-row {
        flex-direction: column;
        gap: 5px;
    }

    .result-row strong {
        text-align: left;
    }
}
