/* =========================================================
   SERVICO DIRETO - LAYOUTS EXTERNOS
   Login / Recuperação / Cadastro Cliente / Cadastro Profissional
   ========================================================= */

html, body {
    min-height: 100%;
}

body.sd-ext-body {
    background: #eef3f8;
    font-family: "Open Sans", Arial, sans-serif;
    color: #29435c;
}

.sd-ext-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.sd-ext-page:before,
.sd-ext-page:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: .28;
    pointer-events: none;
}

.sd-ext-page:before {
    width: 380px;
    height: 380px;
    top: -140px;
    left: -120px;
    background: rgba(255,255,255,.35);
}

.sd-ext-page:after {
    width: 520px;
    height: 520px;
    right: -220px;
    bottom: -220px;
    background: rgba(255,255,255,.2);
}

.sd-theme-login {
    background: linear-gradient(135deg, #edf4fb 0%, #dfeaf5 55%, #d7e8f5 100%);
}

.sd-theme-cliente {
    background: linear-gradient(135deg, #ebfbf8 0%, #dbf4ef 55%, #d9f1ff 100%);
}

.sd-theme-profissional {
    background: linear-gradient(135deg, #eef0ff 0%, #e4e8ff 55%, #edf4ff 100%);
}

.sd-auth-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1260px;
    min-height: 700px;
    background: rgba(255,255,255,.88);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(24, 58, 95, .14);
    overflow: hidden;
    display: flex;
    backdrop-filter: blur(7px);
}

.sd-auth-shell.sd-auth-shell-sm {
    max-width: 1120px;
    min-height: 650px;
}

.sd-auth-shell.reverse {
    flex-direction: row-reverse;
}

.sd-auth-hero {
    width: 54%;
    position: relative;
    padding: 56px 52px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.sd-auth-shell-sm .sd-auth-hero {
    width: 56%;
}

.sd-auth-panel {
    width: 46%;
    background: rgba(255,255,255,.72);
    padding: 50px 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-auth-shell-sm .sd-auth-panel {
    width: 44%;
}

.sd-auth-shell.reverse .sd-auth-panel {
    background: rgba(255,255,255,.78);
}

.sd-hero-login {
    background: linear-gradient(140deg, rgba(11,78,118,.94), rgba(22,161,164,.86)), url('img/bg-login-servico-direto.jpg') center center/cover no-repeat;
}

.sd-hero-cliente {
    background: linear-gradient(140deg, rgba(0,129,120,.92), rgba(20,165,146,.86)), url('img/bg-cadastro-cliente.jpg') center center/cover no-repeat;
}

.sd-hero-profissional {
    background: linear-gradient(140deg, rgba(65,88,208,.93), rgba(80,126,255,.86)), url('img/bg-cadastro-profissional.jpg') center center/cover no-repeat;
}

.sd-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.sd-auth-brand-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .5px;
}

.sd-auth-brand-text strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 24px;
}

.sd-auth-brand-text span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    opacity: .9;
    margin-top: 3px;
}

.sd-auth-kicker {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    margin-bottom: 16px;
}

.sd-auth-hero h1 {
    font-size: 40px;
    line-height: 48px;
    font-weight: 700;
    margin: 0 0 16px;
}

.sd-auth-hero p.sd-auth-hero-text {
    max-width: 520px;
    font-size: 16px;
    line-height: 28px;
    opacity: .96;
    margin-bottom: 0;
}

.sd-hero-points {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}

.sd-hero-points li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 13px;
    font-size: 15px;
    line-height: 24px;
}

.sd-hero-points li:before {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: rgba(255,255,255,.2);
}

.sd-hero-cards {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.sd-hero-card {
    min-width: 145px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.2);
}

.sd-hero-card strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 22px;
}

.sd-hero-card span {
    display: block;
    font-size: 12px;
    opacity: .92;
    margin-top: 5px;
}

.sd-hero-mini {
    margin-top: 34px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    padding: 16px 18px;
    max-width: 480px;
}

.sd-hero-mini strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
}

.sd-hero-mini p {
    margin: 0;
    font-size: 13px;
    line-height: 23px;
    opacity: .95;
}

.sd-auth-form-box {
    width: 100%;
    max-width: 420px;
}

.sd-auth-form-box.sd-auth-form-box-lg {
    max-width: 560px;
}

.sd-auth-form-top {
    margin-bottom: 24px;
}

.sd-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #6e87a0;
    font-size: 13px;
    margin-bottom: 18px;
}

.sd-auth-back:hover,
.sd-auth-back:focus {
    color: #355b84;
    text-decoration: none;
}

.sd-auth-title {
    font-size: 31px;
    line-height: 36px;
    font-weight: 700;
    color: #22435f;
    margin: 0 0 8px;
}

.sd-auth-subtitle {
    font-size: 14px;
    color: #6a7f94;
    line-height: 24px;
    margin: 0;
}

.sd-auth-subtitle strong {
    color: #22435f;
}

.sd-auth-form-box .form-group {
    margin-bottom: 18px;
}

.sd-auth-form-box label {
    font-size: 13px;
    font-weight: 600;
    color: #48647f;
    margin-bottom: 8px;
}

.sd-auth-form-box .form-control,
.sd-auth-form-box select.form-control,
.sd-auth-form-box textarea.form-control {
    height: 48px;
    border-radius: 14px;
    border: 1px solid #dbe5ef;
    box-shadow: none;
    font-size: 14px;
    color: #29435c;
    background: #f8fbfe;
    transition: all .2s ease;
}

.sd-auth-form-box textarea.form-control {
    min-height: 118px;
    height: auto;
    resize: vertical;
    padding-top: 14px;
}

.sd-auth-form-box .form-control:focus,
.sd-auth-form-box select.form-control:focus,
.sd-auth-form-box textarea.form-control:focus {
    background: #fff;
    border-color: #88bdd1;
    box-shadow: 0 0 0 4px rgba(23, 162, 184, .08);
}

.sd-input-icon {
    position: relative;
}

.sd-input-icon .form-control {
    padding-right: 44px;
}

.sd-input-icon .sd-input-action {
    position: absolute;
    right: 14px;
    top: 13px;
    color: #8aa1b8;
    cursor: pointer;
    font-size: 17px;
}

.sd-btn-primary {
    height: 50px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(90deg, #1b6d9b, #21b4a2);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .2px;
    transition: all .2s ease;
    box-shadow: 0 12px 24px rgba(27,109,155,.18);
}

.sd-btn-primary:hover,
.sd-btn-primary:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(27,109,155,.2);
}

.sd-btn-cliente {
    background: linear-gradient(90deg, #079b91, #22c1a5);
    box-shadow: 0 12px 24px rgba(7,155,145,.18);
}

.sd-btn-profissional {
    background: linear-gradient(90deg, #4f63d8, #6d8dff);
    box-shadow: 0 12px 24px rgba(79,99,216,.18);
}

.sd-auth-actions {
    margin-top: 10px;
}

.sd-auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 13px;
}

.sd-auth-links a {
    color: #2b7393;
    font-weight: 600;
}

.sd-auth-links a:hover,
.sd-auth-links a:focus {
    color: #1f5b75;
    text-decoration: none;
}

.sd-auth-register-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.sd-auth-register-card {
    display: block;
    border: 1px solid #dbe6ef;
    border-radius: 18px;
    padding: 16px 18px;
    color: #29435c;
    background: #fff;
    transition: all .2s ease;
}

.sd-auth-register-card:hover,
.sd-auth-register-card:focus {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(31,87,132,.08);
    border-color: #c7d7e6;
}

.sd-auth-register-card .icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 10px;
    font-size: 16px;
}

.sd-auth-register-card.cliente .icon {
    background: linear-gradient(135deg, #0da597, #24cab5);
}

.sd-auth-register-card.profissional .icon {
    background: linear-gradient(135deg, #546bdf, #7692ff);
}

.sd-auth-register-card strong {
    display: block;
    font-size: 14px;
    color: #1f4360;
    margin-bottom: 4px;
}

.sd-auth-register-card span {
    display: block;
    font-size: 12px;
    line-height: 20px;
    color: #6b8398;
}

.sd-auth-footer {
    margin-top: 24px;
    font-size: 12px;
    color: #7b90a4;
    text-align: center;
}

.sd-auth-divider {
    height: 1px;
    background: #e5edf4;
    margin: 22px 0 18px;
}

.sd-auth-alert {
    border-radius: 16px;
    border: none;
    padding: 14px 16px;
    margin-bottom: 18px;
    line-height: 22px;
}

.sd-auth-form-note {
    border-radius: 18px;
    padding: 14px 16px;
    background: #f1f7fb;
    border: 1px solid #e1ebf3;
    color: #5e7790;
    font-size: 12px;
    line-height: 22px;
    margin-top: 14px;
}

.sd-auth-section {
    margin: 22px 0 18px;
    padding-top: 18px;
    border-top: 1px solid #e7eef5;
}

.sd-auth-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #274861;
    margin: 0 0 16px;
}

.sd-auth-section-title .bullet {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.sd-auth-section-title.cliente .bullet {
    background: linear-gradient(135deg, #0da597, #22c2a7);
}

.sd-auth-section-title.profissional .bullet {
    background: linear-gradient(135deg, #546bdf, #6f8eff);
}

.sd-auth-help-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.sd-auth-help-card {
    flex: 1;
    min-width: 140px;
    border: 1px solid #e3ebf3;
    border-radius: 16px;
    padding: 14px;
    background: #fbfdff;
}

.sd-auth-help-card strong {
    display: block;
    font-size: 13px;
    color: #244864;
    margin-bottom: 5px;
}

.sd-auth-help-card span {
    font-size: 12px;
    line-height: 20px;
    color: #70879b;
}

.sd-auth-steps {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sd-auth-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sd-auth-step .number {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.18);
    font-weight: 700;
    font-size: 14px;
}

.sd-auth-step strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.sd-auth-step span {
    display: block;
    font-size: 13px;
    line-height: 22px;
    opacity: .95;
}

@media (max-width: 1100px) {
    .sd-auth-shell,
    .sd-auth-shell.reverse {
        flex-direction: column;
        min-height: initial;
    }

    .sd-auth-hero,
    .sd-auth-panel,
    .sd-auth-shell-sm .sd-auth-hero,
    .sd-auth-shell-sm .sd-auth-panel {
        width: 100%;
    }

    .sd-auth-hero {
        min-height: 310px;
    }

    .sd-auth-panel {
        padding: 42px 30px;
    }

    .sd-auth-form-box,
    .sd-auth-form-box.sd-auth-form-box-lg {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .sd-ext-page {
        padding: 14px;
    }

    .sd-auth-shell,
    .sd-auth-shell.sd-auth-shell-sm {
        border-radius: 24px;
    }

    .sd-auth-hero {
        padding: 34px 24px;
    }

    .sd-auth-panel {
        padding: 30px 20px;
    }

    .sd-auth-hero h1 {
        font-size: 30px;
        line-height: 38px;
    }

    .sd-auth-title {
        font-size: 26px;
        line-height: 32px;
    }

    .sd-auth-links {
        flex-direction: column;
        align-items: flex-start;
    }
}
