@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    --pink: #EA5C88;
    --pink-dark: #E83C76;
    --pink-light: #FFE8EE;
    --ivory: #FFF9F8;
    --navy: #23233D;
    --text: #4F5565;
    --line: #F3E8EC;
    --white: #FFFFFF;
    --shadow: 0 28px 80px rgba(77, 49, 61, .10);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--ivory);
    color: var(--navy);
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

button, input { font: inherit; }

a { color: inherit; }

.login-page {
    width: min(1540px, calc(100% - 48px));
    margin: 24px auto;
}

.login-shell {
    display: grid;
    grid-template-columns: 56% 44%;
    min-height: 760px;
    border: 1px solid rgba(234, 92, 136, .12);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255,255,255,.7);
    box-shadow: var(--shadow);
}

.hero-panel {
    position: relative;
    min-height: 760px;
    background:
        linear-gradient(90deg, rgba(255,249,248,.98) 0%, rgba(255,249,248,.88) 38%, rgba(255,249,248,.08) 78%),
        url('/assets/images/salon-hero.webp') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 18%, rgba(255,255,255,.75), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,245,247,.18));
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 52px 58px;
    display: flex;
    flex-direction: column;
}

.hero-logo {
    width: 185px;
    height: auto;
}

.hero-copy {
    margin-top: 62px;
    max-width: 540px;
}

.hero-copy h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 4.3vw, 78px);
    line-height: 1.04;
    letter-spacing: -.035em;
    font-weight: 600;
}

.hero-copy h1 em {
    display: block;
    color: var(--pink);
    font-style: italic;
}

.title-accent {
    display: block;
    width: 48px;
    height: 3px;
    margin: 28px 0 22px;
    border-radius: 99px;
    background: var(--pink);
}

.hero-tagline {
    margin: 0;
    font-size: 20px;
    color: var(--navy);
}

.feature-list {
    display: grid;
    gap: 22px;
    margin-top: 44px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 18px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,232,238,.88);
    border: 1px solid rgba(234,92,136,.09);
}

.feature-icon img { width: 28px; height: 28px; }

.form-panel {
    position: relative;
    display: grid;
    place-items: center;
    padding: 42px;
    background:
        radial-gradient(circle at 80% 8%, rgba(255,232,238,.8), transparent 25%),
        linear-gradient(145deg, #FFFDFD, #FFF6F8);
}

.form-panel::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -100px;
    bottom: -110px;
    border-radius: 50%;
    background: rgba(234,92,136,.08);
    filter: blur(4px);
}

.language-switch {
    position: absolute;
    top: 44px;
    right: 54px;
    z-index: 2;
    display: inline-flex;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 8px 24px rgba(69,43,54,.08);
}

.language-switch a {
    text-decoration: none;
    color: var(--navy);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    display: inline-block;
}

.language-switch a:hover { color: var(--pink-dark); }

.language-switch a.active {
    background: linear-gradient(135deg, var(--pink-dark), var(--pink));
    color: #fff;
}

.login-card {
    width: min(100%, 560px);
    padding: 70px 48px 50px;
    border: 1px solid rgba(234, 92, 136, .16);
    border-radius: 30px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 32px 80px rgba(77,49,61,.12);
}

.card-logo {
    display: block;
    width: 220px;
    margin: 0 auto 26px;
}

.welcome { text-align: center; margin-bottom: 42px; }

.welcome h2 {
    margin: 0 0 10px;
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    letter-spacing: -.03em;
}

.welcome p {
    margin: 0;
    color: var(--text);
    font-size: 17px;
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-form label {
    margin-top: 4px;
    font-weight: 600;
    font-size: 15px;
}

.field-wrap {
    min-height: 60px;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border: 1px solid #E8E8ED;
    border-radius: 18px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.field-wrap:focus-within {
    border-color: rgba(234, 92, 136, .65);
    box-shadow: 0 0 0 5px rgba(234, 92, 136, .10);
    transform: translateY(-1px);
}

.field-wrap.has-error { border-color: #D94A5C; }

.field-wrap input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--navy);
    font-size: 16px;
}

.field-wrap input::placeholder { color: #A9ADBA; }

.password-toggle {
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    padding: 6px;
    cursor: pointer;
}

.error-text {
    margin: -6px 0 0;
    color: #D94A5C;
    font-size: 13px;
}

.login-alert {
    margin: 0 0 8px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(217, 74, 92, .08);
    border: 1px solid rgba(217, 74, 92, .25);
    color: #D94A5C;
    font-size: 14px;
    text-align: center;
}

.sign-in-button {
    min-height: 60px;
    margin-top: 16px;
    border: 0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #fff;
    background: linear-gradient(135deg, #E83C76, #F36C95);
    box-shadow: 0 14px 30px rgba(234,92,136,.30);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sign-in-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(234,92,136,.34);
}

.industry-strip {
    margin-top: 18px;
    padding: 18px 28px 24px;
    border: 1px solid rgba(234,92,136,.25);
    border-radius: 24px;
    background: rgba(255,255,255,.72);
}

.industry-title {
    display: block;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 18px;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.industry-grid > div {
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-right: 1px solid rgba(234,92,136,.25);
}

.industry-grid > div:last-child { border-right: 0; }

.industry-grid span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--pink);
    background: var(--pink-light);
    font-size: 29px;
}

.industry-grid strong {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 1100px) {
    .login-shell { grid-template-columns: 1fr; }
    .hero-panel { min-height: 620px; }
    .form-panel { min-height: 700px; }
    .industry-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .industry-grid > div { border-right: 0; }
}

@media (max-width: 720px) {
    .login-page { width: min(100% - 24px, 620px); margin: 12px auto; }
    .login-shell { border-radius: 22px; }
    .hero-panel { min-height: 500px; }
    .hero-content { padding: 30px 26px; }
    .hero-logo { width: 150px; }
    .hero-copy { margin-top: 40px; }
    .hero-copy h1 { font-size: 48px; }
    .feature-item { font-size: 16px; }
    .form-panel { padding: 88px 16px 28px; min-height: auto; }
    .language-switch { top: 24px; right: 22px; }
    .login-card { padding: 44px 22px 28px; }
    .card-logo { width: 178px; }
    .welcome h2 { font-size: 34px; }
    .industry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 440px) {
    .hero-panel { min-height: 460px; }
    .hero-copy h1 { font-size: 41px; }
    .feature-list { margin-top: 30px; }
    .feature-icon { width: 48px; height: 48px; }
    .industry-grid { grid-template-columns: 1fr; }
}

html[dir="rtl"] .form-panel::after { right: auto; left: -100px; }
html[dir="rtl"] .language-switch { right: auto; left: 54px; }
html[dir="rtl"] .language-switch { top: 44px; }
@media (max-width: 720px) {
    html[dir="rtl"] .language-switch { left: 22px; right: auto; }
}
