


:root {
    --glass-thin: rgba(255, 255, 255, 0.55);
    --glass-regular: rgba(255, 255, 255, 0.72);
    --glass-thick: rgba(255, 255, 255, 0.85);

    --glass-blur-thin: blur(20px) saturate(180%);
    --glass-blur-regular: blur(30px) saturate(180%);
    --glass-blur-thick: blur(40px) saturate(200%);

    --mac-font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "SF Pro KR", "Apple SD Gothic Neo", "Helvetica Neue",
    system-ui, sans-serif;
    --mac-font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "SF Pro KR", "Apple SD Gothic Neo", "Helvetica Neue",
    system-ui, sans-serif;

    --royal-accent: #007AFF;
    --royal-accent-hover: #0066CC;
}

@media (prefers-color-scheme: dark) {
    :root {
        --glass-thin: rgba(28, 28, 30, 0.70);
        --glass-regular: rgba(28, 28, 30, 0.82);
        --glass-thick: rgba(28, 28, 30, 0.92);
    }
}


.login h1, #login h1 {
    display: none;
}

.login #nav, #nav {
    display: none;
}

.login #backtoblog, #backtoblog {
    display: none;
}

.login #login_error, #login_error {
    display: none;
}

.login .message, .message {
    display: none;
}

.login form#loginform, #loginform {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.login .language-switcher, .language-switcher {
    display: none;
}


body.login {
    background: linear-gradient(135deg,
    #1a1a2e 0%, #16213e 25%, #0f3460 50%,
    #533483 75%, #1a1a2e 100%);
    background-size: 200% 200%;
    animation: mac-bg-shift 20s ease-in-out infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: var(--mac-font-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #fff;
}

@keyframes mac-bg-shift {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}


#login {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}


.mac-login-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    -webkit-backdrop-filter: var(--glass-blur-regular);
    backdrop-filter: var(--glass-blur-regular);
}


.mac-login-clock {
    position: absolute;
    top: 48px;
    font-family: var(--mac-font-display);
    font-size: 72px;
    font-weight: 200;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    line-height: 1;
}

.mac-login-clock-day {
    display: block;
    font-size: 22px;
    font-weight: 400;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}


.mac-login-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
    max-width: 600px;
    width: 100%;
}


.mac-login-logo {
    margin-bottom: 14px;
}

.mac-login-logo-svg {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.85);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}


.mac-login-title {
    font-family: var(--mac-font-display);
    font-size: 20pt;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
}


.mac-login-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 8px 0;
}

.mac-login-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 8px 12px;
    border-radius: 14px;
}

.mac-login-user:hover {
    transform: scale(1.08);
}

.mac-login-user:active {
    transform: scale(1.04);
}

.mac-login-user.active {
    transform: scale(1.08);
}

.mac-login-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.mac-login-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mac-login-user-initial {
    font-family: var(--mac-font-display);
    font-size: 28pt;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.mac-login-user-name {
    font-family: var(--mac-font-text);
    font-size: 12pt;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}


.mac-login-form-area {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: mac-form-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mac-form-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mac-login-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 2px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.mac-login-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mac-login-avatar-initial {
    font-family: var(--mac-font-display);
    font-size: 36pt;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.mac-login-name {
    font-family: var(--mac-font-display);
    font-size: 17pt;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
}


.mac-login-hint {
    font-size: 12pt;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 14px;
    text-align: center;
    min-height: 18px;
    transition: color 0.2s ease;
}

.mac-login-hint.error {
    color: #FF6B6B;
}

.mac-login-error-hint {
    padding: 20px 0;
    color: #FF6B6B;
    text-align: center;
}


.mac-login-input-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

#user_pass, input[name="pwd"], #macLoginPwdInput, .mac-login-input {
    width: 100%;
    padding: 11px 40px 11px 14px;
    font-family: var(--mac-font-text);
    font-size: 13pt;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.10);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    outline: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
    box-sizing: border-box;
}

#user_pass::placeholder, input[name="pwd"]::placeholder, #macLoginPwdInput::placeholder, .mac-login-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

#user_pass:focus, input[name="pwd"]:focus, #macLoginPwdInput:focus, .mac-login-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--royal-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25);
}

.mac-login-direct-area {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: mac-form-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.mac-login-field-wrap {
    width: 100%;
    margin-bottom: 12px;
}

.mac-login-field-wrap .mac-login-input-wrap {
    margin-bottom: 0;
}

.mac-login-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background 0.15s ease;
    z-index: 10;
}

.mac-login-toggle:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
}

.mac-login-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.mac-login-footer-links {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.mac-login-link-btn,
.mac-login-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11pt;
    font-family: var(--mac-font-text);
    text-decoration: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.mac-login-link-btn:hover,
.mac-login-link:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.08);
}

.mac-login-btn {
    font-family: var(--mac-font-display);
    font-size: 12pt;
    font-weight: 500;
    padding: 9px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 100px;
}

.mac-login-btn:active {
    transform: scale(0.97);
}

.mac-login-btn-primary {
    background: var(--royal-accent);
    color: #fff;
}

.mac-login-btn-primary:hover {
    background: var(--royal-accent-hover);
}

.mac-login-btn-secondary {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.7);
    border: 0.5px solid rgba(255, 255, 255, 0.14);
}

.mac-login-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
}


@media (max-width: 768px) {
    .mac-login-clock {
        font-size: 54px;
        top: 28px;
    }

    .mac-login-clock-day {
        font-size: 16px;
    }

    .mac-login-title {
        font-size: 17pt;
        margin-bottom: 20px;
    }

    .mac-login-switcher {
        gap: 16px;
    }

    .mac-login-user-avatar {
        width: 64px;
        height: 64px;
    }

    .mac-login-user-initial {
        font-size: 22pt;
    }

    .mac-login-user-name {
        font-size: 10pt;
    }

    .mac-login-avatar {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .mac-login-clock {
        font-size: 42px;
        top: 20px;
    }

    .mac-login-clock-day {
        font-size: 14px;
    }

    .mac-login-logo-svg {
        width: 48px;
        height: 48px;
    }

    .mac-login-title {
        font-size: 15pt;
        margin-bottom: 16px;
    }

    .mac-login-switcher {
        gap: 12px;
    }

    .mac-login-user-avatar {
        width: 56px;
        height: 56px;
    }

    .mac-login-user-initial {
        font-size: 18pt;
    }

    .mac-login-user-name {
        font-size: 9pt;
    }

    .mac-login-avatar {
        width: 72px;
        height: 72px;
    }
}
