* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

.header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #161b22;
    padding: 16px;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid #30363d;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header__logo {
    display: flex;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo__left {
    color: #58a6ff;
}

.logo__right {
    color: #8b949e;
    font-weight: 400;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: calc(100vh - 65px);
    gap: 32px;
    padding: 40px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.secret-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.secret-block__title {
    font-size: 28px;
    font-weight: 700;
    color: #f0f6fc;
    text-align: center;
    letter-spacing: -0.5px;
}

.secret-block__input {
    padding: 14px 16px;
    border: 1px solid #30363d;
    border-radius: 8px;
    width: 100%;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    text-align: center;
    outline: none;
    background: #0d1117;
    color: #c9d1d9;
    transition: all 0.2s ease;
    letter-spacing: 1px;
}

.secret-block__input::placeholder {
    color: #6e7681;
    letter-spacing: 0;
}

.secret-block__input:hover {
    border-color: #58a6ff;
    background: #161b22;
}

.secret-block__input:focus {
    border-color: #58a6ff;
    background: #161b22;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

#codeDisplay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.verify__block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100px;
    width: 100%;
    padding: 24px 32px;
    border: 1px solid #30363d;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #161b22;
    overflow: hidden;
}

.verify__block:hover {
    border-color: #58a6ff;
    background: #1c2128;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.verify__block:active {
    transform: translateY(0);
}

#verifyCode {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 12px;
    color: #58a6ff;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    user-select: none;
    z-index: 1;
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(48, 54, 61, 0.5);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #58a6ff, #79c0ff);
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(88, 166, 255, 0.5);
}

.timer {
    font-size: 13px;
    color: #8b949e;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.danger {
    color: #ff7b72;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    max-width: 100%;
}

.credit {
    text-align: center;
    padding: 32px 20px 0;
    font-size: 16px;
    color: #c9d1d9;
    width: 100%;
}

.credit a {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.credit a:hover {
    color: #79c0ff;
    border-bottom: 1px solid #79c0ff;
}

.copied-notification {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: #238636;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    animation: slideDown 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

@media screen and (max-width: 600px) {
    .container {
        padding: 32px 16px;
        gap: 24px;
    }

    .secret-block__title {
        font-size: 24px;
    }

    #verifyCode {
        font-size: 36px;
        letter-spacing: 8px;
    }

    .verify__block {
        padding: 20px 24px;
    }
}

@media screen and (max-width: 400px) {
    #verifyCode {
        font-size: 32px;
        letter-spacing: 6px;
    }
}
