/* ///////////////////////////////
////////CSS for home.html//////// 
///////////////////////////////*/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* colours, fonts general beauty*/

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    font-family: 'DM Sans', sans-serif;
}

/* ///////////////////////////////
///////////main contents//////////
///////////////////////////////*/

/* desktop */

.homepage-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* branding */

.site-branding-box {
    padding: 3rem;
    background-color: var(--accent);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    justify-content: space-between;
}

.site-branding-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, #4A80E820 0%, transparent 50%), radial-gradient(circle at 80% 20%, #1A4FAF15 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.site-branding-box > * {
    position: relative;
    z-index: 1;
}

.brand-logo {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--white);
}

.brand-logo-img {
    display: inline-block;
    height: 32px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    vertical-align: middle;
}

.brand-logo span {
    color: var(--primary);
}

.brand-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    justify-content: center;
    flex: 1;
}

.brand-content {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #fff;
    line-height: 1.3;
}

.brand-content span {
    color: var(--primary);
}

.brand-description {
    max-width: 340px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 14px;
}

.brand-features {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 340px;
}

.site-form-box{
    padding: 3rem;
}

.taskflow-credit {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    cursor: pointer;
}

.taskflow-credit span a{
    color: var(--primary);
    text-decoration: none;
}

.taskflow-credit span a:hover {
    color: var(--primary-hovers);
    text-decoration: underline;
}

/* sign in and sign up forms */

.site-form-box {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    width: 70%;
    margin-left: 15%;
}

.tabs {
    display: flex;
    background: var( --bg-card);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 2rem;
    width: 100%;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
    border: none;
    margin-right: 5px;
}

.tab.active {
    background: var(--white);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.form-panel {
    width: 100%;
    display: none;
}

.form-panel.active {
    padding-top: 5%;
    width: 100%;
    display: block;
}

.form-heading {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-subheading {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 13px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

.form-input.select {
    width: 100px;
}

.forgot {
    text-align: right;
    font-size: 12px;
    color: var(--accent2);
    cursor: pointer;
    margin-bottom: 16px;
    margin-top: -8px;
}

.forgot:hover {
    text-decoration: underline;
}

.submit {
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    border: none;
    background: var(--text-primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.submit:hover {
    filter: brightness(150%);
}

.manager-note {
    margin-top: 1.5rem;
    padding: 12px 14px;
    background: var(--bg-accent);
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.manager-note strong {
    color: var(--accent2);
}

.terms p {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.6;
}

.terms a {
    color: var(--accent2);
    cursor: pointer;
    text-decoration: none;
}

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

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.alert-error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
    display: block;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
    display: block;
}

.alert ul {
    margin: 0;
    padding-left: 16px;
}

.alert li {
    margin-bottom: 4px;
}


/* mobile */

@media (max-width: 850px){

    .homepage-container {
        grid-template-columns: 1fr;
    }

    .site-branding-box {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .site-form-box {
        display: flex;
        flex-direction: column;

        justify-content: center;
        align-items: center;

        width: 90%;
        margin: 0 auto;
        padding: 2rem 1rem;
    }
}


/* ///////////////////////////////
//////////////showcase////////////
///////////////////////////////*/

.showcase {
    background-color: var(--bg);
    min-height: 100vh;
    padding: 5%;
}

.page-content {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 48px 16px;
}

.showcase h1 {
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    font-size: 45px;
}

.showcase h1,
.showcase p {
    position: relative;
    justify-content: center;
    text-align: center;
    padding: 5px;
} 


/* sliders & desktop */

.before-after-wrapper {
    width: min(100%, 900px);
    margin: 40px auto;
}

.before-after-slider {
    --position: 50%;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: var(--bg-accent);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.comparison-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.comparison-image-after {
    z-index: 1;
}

.comparison-image-before {
    z-index: 2;
    clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.comparison-range {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    touch-action: pan-y;
}

.comparison-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    z-index: 4;
    width: 4px;
    background: #ffffff;
    transform: translateX(-50%);
    pointer-events: none;
}

.comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.35);
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

.comparison-handle::before,
.comparison-handle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 9px;
    height: 9px;
    border-top: 3px solid var(--white);
    border-left: 3px solid var(--white);
}
.comparison-handle::before {
    left: 12px;
    transform: translateY(-50%) rotate(-45deg);
}
.comparison-handle::after {
    right: 12px;
    transform: translateY(-50%) rotate(135deg);
}

.comparison-range:focus-visible + .comparison-line {
    outline: 3px solid var(--accent2);
    outline-offset: 6px;
}

/* mobile */

@media (max-width: 600px) {
    .page-content {
        padding: 32px 12px;
    }
    .before-after-slider {
        border-radius: 14px;
    }
    .comparison-handle {
        width: 40px;
        height: 40px;
    }
}

