html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

.logo-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
}

.logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 40px);
}

.secret-corner {
    position: fixed;
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    opacity: 0;
    z-index: 9999;
    cursor: default;
}

.top-left { top: 0; left: 0; }
.top-right { top: 0; right: 0; }
.bottom-right { right: 0; bottom: 0; }
.bottom-left { bottom: 0; left: 0; }

/* Hidden login drawer: parked below the bottom-left of the viewport. */
.login-panel {
    position: fixed;
    left: 20px;
    bottom: 0;
    z-index: 5000;
    width: min(340px, calc(100vw - 40px));
    transform: translateY(calc(100% + 24px));
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.45s ease,
        visibility 0s linear 0.45s;
}

.login-panel.visible {
    transform: translateY(-20px);
    visibility: visible;
    pointer-events: auto;
    transition:
        transform 0.45s ease,
        visibility 0s linear 0s;
}

.login-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    padding: 28px 24px 24px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.login-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555555;
    font-size: 26px;
    line-height: 30px;
    cursor: pointer;
}

.login-close:hover,
.login-close:focus {
    color: #000000;
}

.login-form label {
    font-size: 14px;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    font: inherit;
}

.login-form button[type="submit"] {
    margin-top: 8px;
    padding: 10px 14px;
    border: 0;
    border-radius: 4px;
    background: #333333;
    color: #ffffff;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 420px) {
    .login-panel {
        left: 12px;
        width: calc(100vw - 24px);
    }

    .login-panel.visible {
        transform: translateY(-12px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-panel {
        transition: none;
    }
}
