@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');

* {
    font-family: 'Onest', Arial, sans-serif;
    box-sizing: border-box;
    color: #333333;
    caret-color: transparent;
}

body {
    margin: 0px 0px 0px 0px;
    background: #f6f7f8;
}

.register-content {
    background-color: #f6f7f8;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
}

.register-column {
    position: relative;
    width: 100%;
    max-width: 25rem;
    margin-top: 0;
    padding: 0;
}

.register-block {
    width: 100%;
    padding: 2rem;
    padding-bottom: 0.75rem;
    background-color: white;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-radius: 16px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 100%;
}

.register-block form {
    width: 90%;
}

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

.logo .logo-icon {
    height: 2rem;
    object-fit: contain; /* Чтобы сохранялись пропорции при сжатии */
    margin-bottom: 2rem;
}

.input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 12px;
    color: #333;
    margin-bottom: 0.5rem;

    caret-color: auto;
}

.input-group input:focus,
.input-group input:focus-visible {
  outline: none;
  box-shadow: none;
}

.input-group input::placeholder {
    color: #999;
}

.register-button {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;

    transition:
        background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow       0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.register-button:focus,
.register-button:focus-visible {
  outline: none;
  box-shadow: none;
}

.register-button:hover {
    background-color: #2563eb;
}

.register-resend-button {
    align-self: flex-start;
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #3b82f6;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
}

.register-resend-button:hover {
    text-decoration: underline;
}

.register-resend-button:focus,
.register-resend-button:focus-visible {
    outline: none;
    box-shadow: none;
}

.register-resend-button:disabled {
    cursor: default;
    opacity: 0.65;
    text-decoration: none;
}

.login-text {
    margin: 0px 0px 0px 0px;
    font-size: 0.9rem;
}

.login-text a {
    color: #3b82f6;
    text-decoration: none;
}

.login-text a:hover {
    text-decoration: underline;
}

.error,
.error span {
    color: red;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.register-legal {
    width: 100%;
}

.register-legal hr {
    width: 90%;
    border: none;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 0.75rem;
    margin-top: 0px;
}

.register-legal p {
    margin: 0;
    font-size: 0.75rem;
    color: #9aa0a6;
    text-align: center;
    line-height: 1.4;
}

.register-legal a {
    color: #6b7280;
    text-decoration: none;
}

.register-legal a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE PASS ===== */
@media (max-width: 600px) {
    .register-column {
        max-width: 100%;
        margin-top: 0;
    }

    .register-page-title {
        position: static;
        width: 100%;
        margin: 0 auto 1.45rem;
        transform: none;
    }

    .register-content {
        min-height: 100svh;
        align-items: center;
        padding: 6.5rem 1.25rem 2rem;
    }

    .register-block {
        max-width: 100%;
        padding: 1.5rem 1.25rem 0.9rem;
        gap: 1.5rem;
    }

    .register-block form {
        width: 100%;
    }

    .register-legal p {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 380px) {
    .register-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}


body.dark-theme .register-page-title {
    color: #f3f4f6;
}
