/* =========================================================
   SIGNUP PAGE
   ========================================================= */

.signup-page {
    width: 100%;
    max-width: 760px;
    margin: 10px auto 20px;
}


/* =========================================================
   HEADER
   ========================================================= */

.signup-head {
    margin-bottom: 14px;
    text-align: center;
}

.signup-head h1 {
    margin: 0 0 3px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
}

.signup-head p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
}


/* =========================================================
   ACCOUNT TYPE
   ========================================================= */

.signup-types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.signup-type {
    min-height: 90px;
    padding: 13px 16px;

    border: 1px solid #e5e7eb;
    border-radius: 13px;

    background: #fff;

    cursor: pointer;
    text-align: left;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.signup-type:hover {
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.signup-type.active {
    border-color: #111827;
    box-shadow: 0 0 0 1px #111827;
}

.signup-type strong {
    display: block;

    margin-bottom: 3px;

    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;

    color: #111827;
}

.signup-type span {
    display: block;

    font-size: 12px;
    line-height: 1.4;

    color: #6b7280;
}


/* =========================================================
   FORM CARD
   ========================================================= */

.signup-card {
    padding: 17px 20px;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 15px;
}

.signup-form {
    display: none;
}

.signup-form.active {
    display: block;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.signup-section-title {
    margin-bottom: 12px;
}

.signup-section-title h2 {
    margin: 0 0 3px;

    font-size: 19px;
    line-height: 1.25;
    font-weight: 600;

    color: #111827;
}

.signup-section-title p {
    margin: 0;

    font-size: 12px;
    line-height: 1.4;

    color: #6b7280;
}


/* =========================================================
   FIELDS
   ========================================================= */

.signup-field {
    margin-bottom: 9px;
}

.signup-field label {
    display: block;

    margin-bottom: 4px;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;

    color: #374151;
}

.signup-field input {
    display: block;

    width: 100%;
    height: 40px;

    padding: 0 12px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    outline: none;

    background: #fff;
    color: #111827;

    font-size: 14px;

    box-sizing: border-box;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.signup-field input:hover {
    border-color: #9ca3af;
}

.signup-field input:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}

.signup-field input::placeholder {
    color: #9ca3af;
}


/* =========================================================
   ERRORS
   ========================================================= */

.signup-error {
    margin-top: 4px;

    font-size: 12px;
    line-height: 1.35;

    color: #dc2626;
}


/* =========================================================
   COMPANY SEARCH
   ========================================================= */

.company-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-search-row input {
    flex: 1;
    min-width: 0;
}

.company-search-btn {
    height: 40px;

    padding: 0 18px;

    border: 0;
    border-radius: 8px;

    background: #111827;
    color: #fff;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    white-space: nowrap;

    transition:
        background .15s ease,
        opacity .15s ease;
}

.company-search-btn:hover {
    background: #000;
}

.company-search-btn:disabled {
    opacity: .55;
    cursor: default;
}


/* =========================================================
   COMPANY PREVIEW
   ========================================================= */

.company-preview {
    display: none;

    margin: 10px 0 14px;
    padding: 13px 15px;

    border: 1px solid #e5e7eb;
    border-radius: 11px;

    background: #f8fafc;
}

.company-preview.visible {
    display: block;
}

.company-preview__name {
    margin-bottom: 8px;

    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;

    color: #111827;
}

.company-preview__grid {
    display: grid;
    grid-template-columns: 105px 1fr;

    gap: 4px 12px;

    font-size: 12px;
    line-height: 1.4;
}

.company-preview__grid span {
    color: #6b7280;
}

.company-preview__grid strong {
    min-width: 0;

    font-weight: 500;
    color: #374151;

    word-break: break-word;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.signup-submit {
    display: block;

    width: 100%;
    height: 42px;

    margin-top: 3px;

    border: 0;
    border-radius: 9px;

    background: #111827;
    color: #fff;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease;
}

.signup-submit:hover {
    background: #000;
}

.signup-submit:active {
    transform: translateY(1px);
}


/* =========================================================
   LOGIN LINK
   ========================================================= */

.signup-login {
    margin-top: 10px;

    text-align: center;

    font-size: 12px;
    line-height: 1.4;

    color: #6b7280;
}

.signup-login a {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.signup-login a:hover {
    text-decoration: underline;
}


/* =========================================================
   SIGNUP LOGO
   Используется, если обернём include:
   <div class="signup-logo">
       @include('layout.main.logo')
   </div>
   ========================================================= */

.signup-logo {
    margin: 4px auto 6px;
    text-align: center;
}

.signup-logo img {
    width: auto;
    max-height: 52px;
}

.signup-logo h1,
.signup-logo h2,
.signup-logo h3,
.signup-logo p {
    margin-top: 3px;
    margin-bottom: 3px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {

    .signup-page {
        width: 100%;
        margin: 8px auto 16px;
    }

    .signup-types {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 10px;
    }

    .signup-type {
        min-height: auto;
        padding: 11px 13px;
    }

    .signup-card {
        padding: 15px;
        border-radius: 13px;
    }

    .signup-head {
        margin-bottom: 10px;
    }

    .signup-head h1 {
        font-size: 23px;
    }

    .company-search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .company-search-btn {
        width: 100%;
    }

    .company-preview__grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .company-preview__grid strong {
        margin-bottom: 4px;
    }
}