/* WPAdmin Login Clean - modern UTU login UI */
@font-face {
    font-family: 'Muli';
    src: url('../fonts/Muli-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Muli';
    src: url('../fonts/Muli-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --utu-navy: #241b66;
    --utu-purple: #4f35d4;
    --utu-purple-light: #7b5ce6;
    --utu-accent: #0f8b8d;
    --utu-text: #20204f;
    --utu-muted: #777a9a;
    --utu-border: #e5e4f2;
    --utu-success: #21a366;
    --utu-danger: #d63638;
    --utu-surface: #ffffff;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body.login {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-family: 'Muli', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    color: var(--utu-text);
    background:
        linear-gradient(135deg, rgba(79,53,212,.08), transparent 38%),
        linear-gradient(135deg, #f8f9fc 0%, #eef2f7 100%);
    position: relative;
    overflow-x: hidden;
}

body.login::before,
body.login::after {
    content: '';
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border: 1px solid rgba(123,92,230,.16);
    border-radius: 42px;
    transform: rotate(-24deg);
}

body.login::before {
    width: 280px;
    height: 280px;
    left: -150px;
    top: 80px;
}

body.login::after {
    width: 320px;
    height: 320px;
    right: -180px;
    bottom: 40px;
}

#login {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    margin: 0;
    padding: 40px 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 8px;
    box-shadow: 0 18px 52px rgba(43,31,108,.13);
}

#login > * { min-width: 0; }

.login h1 {
    order: 1;
    margin: 0 0 18px;
}

.login h1 a {
    width: 112px;
    height: 112px;
    margin: 0 auto;
    display: block;
    background: url('../images/utu-logo.png') center/contain no-repeat;
    filter: drop-shadow(0 8px 12px rgba(36,27,102,.15));
    color: transparent;
    font-size: 0;
    line-height: 0;
}

#login::before {
    content: 'Selamat Datang Kembali';
    order: 2;
    display: block;
    margin: 0 auto;
    color: var(--utu-text);
    text-align: center;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
}

#login::after {
    content: 'Silahkan masuk untuk melanjutkan';
    order: 3;
    display: block;
    margin: 8px auto 28px;
    color: var(--utu-muted);
    text-align: center;
    font-size: 15px;
    line-height: 1.45;
}

.login form {
    order: 5;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.login form p {
    width: 100%;
    margin: 0 0 16px;
}

.login label {
    display: block;
    margin: 0 0 8px;
    color: var(--utu-text);
    font-size: 14px;
    font-weight: 700;
}

.login form .input,
.login input[type=password],
.login input[type=text] {
    width: 100%;
    height: 56px;
    margin: 0 0 20px;
    padding: 0 18px;
    border: 1px solid var(--utu-border);
    border-radius: 8px;
    background-color: #fff;
    color: var(--utu-text);
    font-family: inherit;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(43,31,108,.04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.login #user_login {
    padding-left: 18px;
}

.login form .input:hover,
.login input[type=password]:hover,
.login input[type=text]:hover { border-color: #c8c5e3; }

.login form .input:focus,
.login input[type=password]:focus,
.login input[type=text]:focus {
    border-color: var(--utu-purple);
    outline: none;
    box-shadow: 0 0 0 4px rgba(79,53,212,.12);
    transform: translateY(-1px);
}

.login .user-pass-wrap {
    width: 100%;
    margin-bottom: 0;
}

.login .user-pass-wrap .wp-pwd { position: relative; }

.login .user-pass-wrap .input { padding-right: 56px; }

.login .user-pass-wrap .button {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    color: var(--utu-purple);
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}

.login .user-pass-wrap .button:focus,
.login .user-pass-wrap .button:hover { border: 0; box-shadow: none; }

.login form p.forgetmenot {
    width: 100%;
    margin: 2px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    float: none;
}
.login .forgetmenot label { display: block; margin: 0; font-weight: 600; }
.login form input[type=checkbox] { width: 18px; min-width: 18px; height: 18px; margin: 0; border: 1px solid #c7c5dc; border-radius: 4px; }
.login form input[type=checkbox]::before { display: none; }
.login form input[type=checkbox]:checked {
    border-color: var(--utu-success);
    background: #fff url('../images/icon-checkmark-green.svg') center/12px 12px no-repeat;
}

.login #nav {
    order: 6;
    float: none;
    width: 100%;
    margin: 18px 0 0;
    padding: 0;
    text-align: center;
}
.login #nav a { color: var(--utu-purple); font-weight: 700; text-decoration: none; }
.login #nav a:hover { color: var(--utu-navy); }

.login #backtoblog {
    order: 7;
    width: 100%;
    margin: 18px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid #eeeef7;
    text-align: center;
}
.login #backtoblog a { color: var(--utu-purple); font-weight: 700; text-decoration: none; }

.login .submit {
    clear: both;
    float: none;
    width: 100%;
    margin: 22px 0 0 !important;
    padding: 0;
}
.login .submit .button {
    width: 100%;
    height: 54px;
    min-height: 54px;
    padding: 14px 22px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(100deg, var(--utu-purple), var(--utu-purple-light));
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    box-shadow: 0 10px 22px rgba(79,53,212,.22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.login .submit .button:hover,
.login .submit .button:focus { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(79,53,212,.28); }
.login .submit .button:active { transform: translateY(0); }

.login .message,
.login #login_error,
.login .success {
    order: 4;
    position: relative;
    width: 100%;
    margin: 0 0 18px;
    padding: 13px 16px;
    border: 1px solid var(--utu-border);
    border-left: 4px solid var(--utu-accent);
    border-radius: 8px;
    background: var(--utu-surface);
    color: var(--utu-text);
    box-shadow: 0 8px 20px rgba(43,31,108,.08);
}

.login #login_error { border-left-color: var(--utu-danger); }
.login .success { border-left-color: var(--utu-success); }

.login .privacy-policy-page-link {
    width: 100%;
    margin-top: 18px;
    text-align: center;
}

.login .privacy-policy-page-link .privacy-policy-link { color: var(--utu-muted); }

.login .language-switcher {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    margin: 20px 0 0;
    text-align: center;
}

.login .language-switcher .dashicons-translation { display: none; }

.login .language-switcher form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.login .language-switcher select {
    max-width: 100%;
    height: 40px;
    margin: 0;
    border: 1px solid var(--utu-border);
    border-radius: 8px;
    background-color: #fff;
    color: var(--utu-text);
    font-family: inherit;
}

.login .language-switcher .button {
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--utu-purple);
    border-radius: 8px;
    background: #fff;
    color: var(--utu-purple);
    font-family: inherit;
    font-weight: 700;
    line-height: 1;
}

@media (min-height: 840px) and (min-width: 701px) {
    body.login { justify-content: center; }
}

@media (max-height: 820px) and (min-width: 701px) {
    body.login {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    #login { padding: 32px 36px 28px; }
    .login h1 { margin-bottom: 14px; }
    .login h1 a { width: 92px; height: 92px; }
    #login::after { margin-bottom: 22px; }

    .login form .input,
    .login input[type=password],
    .login input[type=text] {
        height: 52px;
        margin-bottom: 16px;
    }

    .login .submit { margin-top: 18px !important; }
    .login .submit .button {
        height: 52px;
        min-height: 52px;
    }
}

@media (max-width: 700px) {
    body.login {
        justify-content: flex-start;
        padding: 22px 14px 48px;
    }

    body.login::before,
    body.login::after {
        display: none;
    }

    #login {
        max-width: 100%;
        padding: 32px 24px 26px;
    }

    .login h1 a { width: 96px; height: 96px; }
    #login::before { font-size: 23px; }
    #login::after { margin-bottom: 24px; }
}

@media (max-width: 420px) {
    body.login { padding: 16px 10px 40px; }

    #login { padding: 26px 18px 22px; }

    .login form .input,
    .login input[type=password],
    .login input[type=text] {
        height: 52px;
        margin-bottom: 16px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .login .user-pass-wrap .input { padding-right: 54px; }
    .login .submit .button {
        height: 52px;
        min-height: 52px;
    }
}
