*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

.cc-gate-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef4 100%);
    color: #2c3e50;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

.cc-gate-shell {
    width: 100%;
    max-width: 460px;
}

.cc-gate-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.cc-gate-icon {
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cc-gate-logo-img,
.cc-gate-logo-svg {
    max-height: 80px;
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
}

.cc-gate-card h1 {
    font-size: 28px;
    margin: 0 0 8px;
    color: #1a202c;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.cc-gate-lede {
    font-size: 15px;
    line-height: 1.5;
    color: #5a6c7d;
    margin: 0 0 28px;
}

.cc-gate-error {
    background: #fee;
    border: 1px solid #fbb;
    color: #c0392b;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
}

.cc-gate-form {
    text-align: left;
    margin-bottom: 24px;
}

.cc-gate-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cc-gate-input-wrap {
    position: relative;
}

.cc-gate-input {
    width: 100%;
    padding: 14px 52px 14px 16px;
    font-size: 18px;
    font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #1a202c;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: border-color 0.15s, background 0.15s;
}

.cc-gate-input:focus {
    outline: none;
    border-color: #c0392b;
    background: #fff;
}

.cc-gate-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #5a6c7d;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.cc-gate-toggle:hover { color: #1a202c; background: rgba(0, 0, 0, 0.04); }
.cc-gate-toggle:focus-visible { outline: 2px solid #c0392b; outline-offset: 2px; }
.cc-gate-toggle svg { width: 20px; height: 20px; display: block; }
.cc-gate-toggle .cc-gate-eye-hide { display: none; }
.cc-gate-toggle[aria-pressed="true"] .cc-gate-eye-show { display: none; }
.cc-gate-toggle[aria-pressed="true"] .cc-gate-eye-hide { display: block; }

.cc-gate-button {
    width: 100%;
    margin-top: 16px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #c0392b;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
}

.cc-gate-button:hover { background: #a93225; }
.cc-gate-button:active { transform: translateY(1px); }

.cc-gate-help {
    font-size: 13px;
    color: #8a9aa9;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .cc-gate-card { padding: 28px 22px; }
    .cc-gate-card h1 { font-size: 24px; }
    .cc-gate-input { font-size: 16px; padding: 12px 14px; }
}
