
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: Arial, sans-serif; line-height: 1.6; background-color: #f4f4f4; color: #333; }
        .form-card {
            max-width: 400px;
            margin: 50px auto;
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        .form-title { font-size: 24px; margin-bottom: 20px; text-align: center; }
        .form-group { margin-bottom: 15px; }
        .label { display: block; font-weight: bold; margin-bottom: 5px; }
        .input-text, .input-password {
            width: 100%; padding: 10px; border: 1px solid #ccc;
            border-radius: 4px; font-size: 16px;
        }
        .input-file { margin-top: 5px; }
        .submit-btn {
            display: block; width: 100%; padding: 10px;
            background-color: #ff6b6b; color: #fff; border: none;
            border-radius: 4px; font-size: 16px; font-weight: bold;
            cursor: pointer; transition: background-color 0.3s;
        }
        .submit-btn:hover { background-color: #cc0000; }
        .submit-btn:disabled { background-color: #999; cursor: not-allowed; }
        .validation-error { color: #dc3545; font-size: 14px; margin-top: 5px; }
        .required-field { color: #dc3545; }
        .field-wrapper { position: relative; }
        .password-confirmation { margin-top: 10px; }
        .already-registered { text-align: center; margin-top: 20px; }
        .link { color: #007bff; text-decoration: none; }
        .link:hover { text-decoration: underline; }
        #previewAvatar { display: none; max-width: 150px; margin-top: 10px; }

        /* Стили модалок */
        .modal {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.5); display: flex;
            justify-content: center; align-items: center; z-index: 1000;
        }
        .modal-content {
            background: #fff; padding: 20px; border-radius: 8px;
            width: 90%; max-width: 600px; position: relative;
        }
        .close {
            position: absolute; right: 12px; top: 12px;
            cursor: pointer; font-size: 24px;
        }
        .link-btn {
            background: none; border: none; color: #007bff;
            text-decoration: underline; cursor: pointer;
            padding: 0; font: inherit;
        }
        .docs-links {
            margin-top: 5px;
        }
    