/* Основные стили */
body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Шапка */
.header {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: 100px; /* Вы можете настроить высоту логотипа */
    width: auto;
}

/* Основной контент */
.main-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.content-wrapper {
    width: 100%;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.main-title {
    font-size: 1.875rem; /* 30px */
    line-height: 2.25rem; /* 36px */
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
}

@media (min-width: 640px) {
    .main-title {
        font-size: 2.25rem; /* 36px */
        line-height: 2.5rem; /* 40px */
    }
}

/* Форма */
.form-container {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.captcha-wrapper {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.captcha-image {
    flex: 1;
    background-color: #ffffff;
    padding: 0.75rem;
    border-radius: 0.25rem;
    text-align: center;
}

.captcha-code {
    font-family: monospace;
    letter-spacing: 3px;
    font-weight: 600;
    color: #000000;
    font-size: 1.25rem; /* 20px */
}

.refresh-button {
    background-color: #2d2d2d;
    color: #ffffff;
    padding: 0.75rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.refresh-button:hover {
    background-color: #3f3f3f;
}

.icon {
    height: 1.25rem; /* 20px */
    width: 1.25rem; /* 20px */
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #2d2d2d;
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    color: #ffffff;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3b82f6;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.submit-button {
    width: 100%;
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #1d4ed8;
}

/* Информационный текст */
.info-text {
    margin-top: 3rem;
    color: #d1d5db;
    font-size: 0.875rem; /* 14px */
    line-height: 1.625;
}

.info-text p {
    margin-bottom: 1rem;
}

/* Подвал */
.footer {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid #1a1a1a;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem; /* 14px */
}

/* Стили для модального окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.modal-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2d2d2d;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-body ul li {
    margin-bottom: 1rem;
}

.modal-body ul li a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}

.modal-body ul li a:hover {
    color: #2563eb;
    text-decoration: underline;
}

  .invisible-text {
    visibility: hidden;
  }
