.tc-register {
    background: #fff;
    padding: 42px 0 34px;
}

.tc-register .container {
    max-width: 900px;
}

.tc-register__panel {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 26px 106px 18px;
    border: 1px solid #d4dde5;
    border-radius: 34px;
    background: #fff;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .12);
}

.tc-register__panel h1 {
    margin: 0 0 25px;
    color: #00598c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0;
}

.tc-register__message .alert {
    margin: 0 0 16px;
    border-radius: 4px;
    font-size: 13px;
}

.tc-register__form {
    display: block;
}

.tc-field {
    margin-bottom: 12px;
}

.tc-field input {
    width: 100%;
    height: 37px;
    padding: 9px 13px;
    border: 1px solid #d2dbe2;
    border-radius: 4px;
    background: #fff;
    color: #455a6b;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.tc-field input::placeholder {
    color: #8e9aa6;
    opacity: 1;
}

.tc-field input:focus {
    border-color: #00598c;
    box-shadow: 0 0 0 2px rgba(0, 89, 140, .12);
}

.tc-field.is-invalid input,
.tc-upload.is-invalid .tc-upload__dropzone {
    border-color: #c9302c;
    box-shadow: 0 0 0 2px rgba(201, 48, 44, .08);
}

.tc-field__error {
    display: none;
    margin-top: 4px;
    color: #c9302c;
    font-size: 11px;
    line-height: 1.35;
}

.tc-field.is-invalid .tc-field__error,
.tc-upload.is-invalid .tc-field__error {
    display: block;
}

.tc-upload {
    margin: 51px 0 23px;
    text-align: center;
}

.tc-upload__dropzone {
    display: flex;
    min-height: 88px;
    margin: 0;
    padding: 14px;
    border: 1px dashed #d4dde5;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    transition: border-color .15s ease, background-color .15s ease;
}

.tc-upload__dropzone:hover,
.tc-upload__dropzone.is-dragging {
    border-color: #00598c;
    background: #f7fbfd;
}

.tc-upload__dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.tc-upload__icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #f0f2f5;
    color: #697789;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.tc-upload__text {
    color: #34495d;
    font-size: 11px;
    line-height: 1.3;
}

.tc-upload__hint {
    display: block;
    margin-top: 14px;
    color: #8293a1;
    font-size: 11px;
    line-height: 1.35;
}

.tc-register__login {
    margin-top: -8px;
    text-align: center;
}

.tc-register__login a {
    color: #00598c;
    font-size: 12px;
    text-decoration: underline;
}

.tc-register__actions {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    margin-top: 41px;
}

.tc-button {
    min-width: 76px;
    min-height: 31px;
    padding: 8px 16px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.tc-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 89, 140, .22);
}

.tc-button--primary {
    background: #00598c;
}

.tc-button--primary:hover {
    background: #004c78;
}

.tc-button--secondary {
    background: #0081a5;
}

.tc-button--secondary:hover {
    background: #006f8d;
}

.tc-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    padding: 20px;
    background: rgba(0, 0, 0, .42);
    align-items: center;
    justify-content: center;
}

.tc-modal.is-open {
    display: flex;
}

.tc-modal__dialog {
    width: 100%;
    max-width: 420px;
    padding: 24px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
    text-align: center;
}

.tc-modal__dialog h2 {
    margin: 0;
    color: #34495d;
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: 0;
}

.tc-modal__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

@media (max-width: 767px) {
    .tc-register {
        padding: 24px 0;
    }

    .tc-register__panel {
        max-width: none;
        padding: 24px 18px 18px;
        border-radius: 16px;
    }

    .tc-register__panel h1 {
        font-size: 20px;
    }

    .tc-upload {
        margin-top: 32px;
    }

    .tc-register__actions {
        justify-content: stretch;
        gap: 10px;
        margin-top: 28px;
    }

    .tc-button {
        flex: 1;
    }
}
