* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 1100px;
    width: 100%;
    background: white;
    padding: 60px 80px;
    border-radius: 8px;
}

.logo {
    text-align: center;
    margin-bottom: 50px;
}

.logo-container {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 5px;
    color: #1e1e1e;
    position: relative;
    z-index: 1;
}

.corner-bracket {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: #1e1e1e;
    border-style: solid;
}

.corner-bracket.top-left {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
}

.corner-bracket.top-right {
    top: 0;
    right: 0;
    border-width: 3px 3px 0 0;
}

.corner-bracket.bottom-left {
    bottom: 0;
    left: 0;
    border-width: 0 0 3px 3px;
}

.corner-bracket.bottom-right {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
}

h1 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 12px;
}

.subtitle {
    text-align: center;
    font-size: 16px;
    color: #888;
    margin-bottom: 40px;
}

.word-count-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.toggle-btn {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    background-color: #e8e8e8;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background-color: #1e1e1e;
    color: white;
}

.toggle-btn:hover:not(.active) {
    background-color: #d8d8d8;
}

.seed-phrase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.word-input-wrapper {
    display: flex;
    flex-direction: column;
}

.word-number {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
    margin-left: 4px;
}

.word-input-container {
    position: relative;
}

.word-input {
    width: 100%;
    padding: 14px 40px 14px 14px;
    font-size: 15px;
    border: 2px solid #e5e5e5;
    background-color: #ffffff;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
}

.word-input:focus {
    border-color: #d0d0d0;
    background-color: #fafafa;
}

.word-input.valid {
    border-color: #d0f0d5;
    background-color: #f0fdf4;
}

.word-input.valid:focus {
    border-color: #86efac;
    background-color: #dcfce7;
}

.word-input.invalid {
    border-color: #fca5a5;
    background-color: #fef2f2;
}

.word-input.invalid:focus {
    border-color: #f87171;
    background-color: #fee2e2;
}

.word-input::placeholder {
    color: #999;
}

.input-check-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #4ade80;
    width: 20px;
    height: 20px;
    display: none;
}

.input-check-icon.invalid-icon {
    color: #f87171;
}

.validation-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background-color: #f0fdf4;
    border: 2px solid #d0f0d5;
    border-radius: 6px;
    color: #4ade80;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 20px;
}

.validation-message.error-message {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #ef4444;
}

.error-icon {
    flex-shrink: 0;
    color: #ef4444;
}

.check-icon {
    flex-shrink: 0;
    color: #4ade80;
}

.hide-phrase-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.hide-phrase-btn:hover {
    color: #1e1e1e;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    background-color: #1e1e1e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #2e2e2e;
}

.submit-btn:active {
    background-color: #0e0e0e;
}

@media (max-width: 768px) {
    .container {
        padding: 40px 30px;
    }

    .seed-phrase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .seed-phrase-grid {
        grid-template-columns: 1fr;
    }
}
