:root {
    --bg-cream: #FFF5EE;
    --ink: #463A67;
    --muted: #474747;
    --peach-1: #F2CDB3;
    --peach-2: #EDD9CA;
    --chip: #FFFFFF;
    --soft-stroke: #FFFFFF;
    --shadow-soft: 0 0 2px rgba(255, 103, 0, .2);
    --btn-text: #FFE3E3;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg-cream);
    color: var(--ink);
}

/* Layout */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.card-auth {
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 2px 24px rgba(0, 0, 0, .05);
}

.brand-badge {
    width: 56px;
    height: 56px;
    border-radius: 100px;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.section-title {
    font-weight: 600;
    font-size: 18px;
    color: var(--ink);
}

.helper-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.43;
}

/* Social buttons */
.btn-social {
    border-radius: 4px;
    border: 1px solid var(--soft-stroke);
    background: var(--chip);
    box-shadow: var(--shadow-soft);
    color: var(--ink);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.btn-social img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 24px;
}

.divider .line {
    flex: 1;
    height: 1px;
    background: var(--peach-1);
}

/* Tabs */
.nav-tabs.auth-tabs {
    border-bottom: 0;
}

.nav-tabs.auth-tabs .nav-link {
    border: 0;
    border-bottom: 1px solid var(--peach-2);
    border-radius: 0;
    color: var(--ink);
    padding: 16px 24px;
    width: 100%;
}

.nav-tabs.auth-tabs .nav-link.active {
    border-bottom: 2px solid var(--ink);
    font-weight: 500;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 4px;
    border: 1px solid var(--soft-stroke);
    background: rgba(255, 255, 255, .4);
    box-shadow: var(--shadow-soft);
    color: var(--ink);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' class='bi bi-caret-down-fill' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592c.86 0 1.319 1.013.753 1.658l-4.796 5.482a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
}


.form-control::placeholder {
    color: #987775;
}

.input-with-addon {
    display: flex;
    gap: 12px;
}

.addon-slim {
    min-width: 110px;
}

/* Primary button */
.btn-primary-ink {
    background: var(--ink) !important;
    border-color: var(--ink) !important;
    color: var(--btn-text) !important;
    border-radius: 48px;
    padding: 14px 24px;
}

.link-ink {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
}

.link-ink:hover {
    opacity: .85;
    color: var(--ink);
}

.muted-12 {
    font-size: 12px;
    color: var(--muted);
}

/* Footer */
.footer-link {
    color: var(--muted);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--ink);
    text-decoration: underline;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    border: 1px solid var(--peach-2);
    background: #fff;
    box-shadow: var(--shadow-soft);
    color: var(--ink);
    text-decoration: none;
}

.social-icon:hover {
    opacity: .85;
}

/* Navbar */
.navbar .nav-link {
    color: var(--ink);
}

.navbar .nav-link:hover {
    opacity: .85;
}

.navbar .dropdown-menu {
    border-radius: 8px;
    border-color: var(--peach-2);
}

/* OTP */
.otp-box {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid var(--soft-stroke);
    background: rgba(255, 255, 255, .4);
    box-shadow: var(--shadow-soft);
    color: var(--ink);
}

/* Country list */
.country-item {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(237, 217, 202, .3);
}

.country-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    background: #eee;
}

.code-chip {
    width: 24px;
    height: 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--peach-1);
    color: var(--muted);
    font-size: 12px;
    background: #FFFBF7;
}

/* Desktop visual */
@media (min-width: 992px) {
    .auth-hero {
        min-height: 100%;
        border-radius: 24px;
        background: url('https://via.placeholder.com/960x1200/FFF5EE/CCCCCC?text=Terapizy+Visual') center/cover no-repeat;
    }
}





/* Webinar Card */


.webinar-image-wrapper {
    position: absolute;
    width: auto;
    height: auto;
    pointer-events: none;
}

.webinar-image {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: cover;

    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.webinar-image-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 381.79px;
    height: 379.76px;
    background: #ABA6A3;
    opacity: 0.3;
    border-radius: 8px;
}

.webinar-card-content {
    position: relative;
    z-index: 1;
}

.webinar-card-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.165;
    margin-bottom: 0;
}

.webinar-doctor {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 18px;
    margin-bottom: 0;
}

.webinar-date {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    line-height: 1.395;
    margin-top: 0;
    margin-bottom: 0;
}

.webinar-price-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    background: rgba(22, 19, 32, 0.4);
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 10px;
    line-height: 1.5;
    color: #FFFFFF;
    margin-top: 18px;
}

/* Description */
.webinar-description {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.929;
    color: var(--muted);
    margin-bottom: 24px;
}

/* Registration Form */
.registration-form {
    margin-top: 24px;
}

.form-group-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.form-group-row .form-group {
    flex: 1;
}

.form-group-phone {
    display: flex;
    gap: 12px;
}

.form-group-phone .country-select {
    width: 100px;
    flex-shrink: 0;
}

.form-group-phone .phone-input {
    flex: 1;
}

/* Desktop Layout */
@media (min-width: 992px) {
    .webinar-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 40px;
    }

    .webinar-header {
        margin-bottom: 48px;
    }

    .webinar-content {
        display: grid;
        grid-template-columns: 1.2fr 1.8fr;
        gap: 64px;
        align-items: start;
    }

    .webinar-main {
        max-width: 550px;
    }


    .webinar-image-wrapper {
        right: 40px;
        top: -50px;
        width: 380px;
        height: 420px;
    }

    .webinar-image {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .webinar-image-bg {
        width: 420px;
        height: 400px;
    }

    .webinar-description {
        font-size: 15px;
        line-height: 2;
        margin-top: 32px;
    }

    .registration-form {
        background: #FFFFFF;
        border-radius: 24px;
        padding: 40px;
        box-shadow: 0 2px 24px rgba(0, 0, 0, .05);
        max-width: 600px;
        margin-left: auto;
    }

    .form-group-row {
        margin-bottom: 20px;
    }
}

@media (min-width: 1200px) {
    .webinar-content {
        grid-template-columns: 1fr 1.5fr;
        gap: 80px;
    }


    .registration-form {
        padding: 48px;
    }
}

/* Mobile Layout */
@media (max-width: 991px) {
    .webinar-container {
        padding: 0 16px;
    }

    .registration-form {
        background: #FFFFFF;
        border-radius: 24px;
        padding: 24px;
        box-shadow: 0 2px 24px rgba(0, 0, 0, .05);
    }

    .form-group-row {
        flex-direction: column;
    }
}


/* Webinar Listing Page */
.webinar-page-header {
    margin-bottom: 40px;
    padding: 0 16px;
}

.webinar-page-title {
    font-weight: 600;
    font-size: 28px;
    color: var(--ink);
    margin-bottom: 8px;
}

.webinar-page-subtitle {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

/* Webinar List Container */
.webinar-list-container {
    padding: 0 16px;
}

/* Webinar List Item */
.webinar-list-item {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, .05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.webinar-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 32px rgba(0, 0, 0, .08);
}

.webinar-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 20px;
}

.webinar-item-content {
    flex: 1;
}

.webinar-item-title {
    font-weight: 600;
    font-size: 20px;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.3;
}

.webinar-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.webinar-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
}

.webinar-meta-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.webinar-item-description {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.webinar-item-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.webinar-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(237, 217, 202, 0.3);
}

.webinar-price {
    font-weight: 600;
    font-size: 18px;
    color: var(--ink);
}

.webinar-price-label {
    font-size: 12px;
    color: var(--muted);
    display: block;
    font-weight: 400;
}

.webinar-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(70, 58, 103, 0.1);
    color: var(--ink);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

/* Empty State */
.webinar-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.webinar-empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    opacity: 0.3;
}

/* Desktop Layout */
@media (min-width: 992px) {

    .webinar-page-header,
    .webinar-list-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 40px;
    }

    .webinar-page-title {
        font-size: 36px;
    }

    .webinar-list-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: 32px;
    }

    .webinar-list-item {
        margin-bottom: 0;
    }

    .webinar-item-header {
        flex-direction: column;
    }

    .webinar-item-image {
        width: 100%;
        height: auto;
        align-self: stretch;
    }

    .webinar-item-footer {
        flex-direction: row;
        align-items: center;
    }
}

/* Tablet Layout */
@media (min-width: 768px) and (max-width: 991px) {
    .webinar-list-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .webinar-list-item {
        margin-bottom: 0;
    }
}

/* Mobile Layout */
@media (max-width: 767px) {
    .webinar-item-header {
        flex-direction: column;
    }

    .webinar-item-image {
        width: 100%;
        height: auto;
        align-self: stretch;
    }

    .webinar-item-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .webinar-item-footer .btn {
        width: 100%;
    }
}
