.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 300px;
    max-width: 440px;
    width: calc(100% - 32px);
    max-height: 90vh;
    overflow-y: auto;
}

.modal h2 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.field-hint {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
    color: #666;
    font-weight: normal;
}

.field-optional {
    font-weight: normal;
    color: #888;
    font-size: 0.9em;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input:not([type="radio"]):not([type="checkbox"]) {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.email-display {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
    word-break: break-all;
}

.buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.work-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 5px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.work-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.work-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error-message {
    color: #c0392b;
    font-size: 14px;
    min-height: 1.2em;
    margin: 8px 0;
    text-align: center;
}

.success-message {
    color: #27ae60;
    font-size: 14px;
    min-height: 1.2em;
    margin: 8px 0;
    text-align: center;
}


.modal--wide {
    max-width: 520px;
}

.modal select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}
