
:root {
    font-family: Inter, sans-serif;
    color: #17191f;
    background: #f6f7f9;
    font-synthesis: none;
    text-rendering: optimizeLegibility;

    --accent: #7657e8;
    --muted: #747b88;
    --line: #e8eaf0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
}

button,
input {
    font: inherit;
}

.admin-login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    position: relative;
}

.back-home {
    position: absolute;
    top: 30px;
    left: 35px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #68717e;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color .2s;
}

.back-home:hover {
    color: var(--accent);
}

.back-home svg {
    width: 17px;
    height: 17px;
}

.admin-login-card {
    width: 100%;
    max-width: 440px;
    padding: 36px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 40px #18213a0b;
}

.admin-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 34px;
}

.logo-symbol {
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: #17191f;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 800;
}

.admin-logo div {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.admin-logo strong {
    font-size: 16px;
    letter-spacing: .5px;
}

.admin-logo div span {
    margin-top: 4px;
    font-size: 10px;
    color: #8b909a;
    letter-spacing: 2.5px;
}

.security-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: #f0edff;
    color: var(--accent);
}

.security-icon svg {
    width: 28px;
    height: 28px;
}

.login-heading {
    text-align: center;
    margin-bottom: 30px;
}

.eyebrow {
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.login-heading h1 {
    margin: 11px 0 9px;
    font-size: 25px;
    letter-spacing: -.8px;
}

.login-heading p {
    max-width: 330px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    font-size: 12px;
    font-weight: 650;
    color: #343944;
}

.input-wrapper {
    height: 47px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #9299a4;
    transition: border-color .2s, box-shadow .2s;
}

.input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px #7657e817;
}

.input-wrapper > svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.input-wrapper input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #17191f;
    font-size: 12px;
}

.input-wrapper input::placeholder {
    color: #a8adb6;
}

.toggle-password {
    display: grid;
    place-items: center;
    padding: 5px;
    border: 0;
    background: transparent;
    color: #9299a4;
    cursor: pointer;
}

.toggle-password svg {
    width: 17px;
    height: 17px;
}

#adminLoginButton {
    width: 100%;
    height: 47px;
    margin-top: 7px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    background: #7657e8;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

#adminLoginButton:hover {
    background: #6849d7;
    transform: translateY(-1px);
}

#adminLoginButton:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

#adminLoginButton svg {
    width: 17px;
    height: 17px;
}

.login-message {
    min-height: 16px;
    margin: 12px 0 0;
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
    color: #d34b4b;
}

.login-message.success {
    color: #269765;
}

.security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 25px;
    padding: 13px;
    border: 1px solid #dcefe4;
    border-radius: 10px;
    background: #f0f8f4;
    color: #547160;
}

.security-note svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.security-note p {
    margin: 0;
    font-size: 10px;
    line-height: 1.6;
}

footer {
    margin-top: 28px;
    color: #a0a5ae;
    font-size: 10px;
    text-align: center;
}

@media (max-width: 520px) {
    .admin-login-page {
        padding: 80px 15px 25px;
    }

    .back-home {
        top: 24px;
        left: 18px;
    }

    .admin-login-card {
        padding: 27px 21px;
        border-radius: 15px;
    }

    .login-heading h1 {
        font-size: 23px;
    }
}
