﻿/* ===== Login page ===== */

.login-card {
    width: 432px;
    padding: 0 16px;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.login-title {
    color: var(--color-text-mid);
    font-size: 16px;
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 24px;
}

.login-subtitle {
    display: inline-flex;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    color: var(--color-text-mid);
    font-size: 16px;
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 24px;
}

.login-subtitle__brand {
    font-family: var(--font-serif);    
}

.alert-success {
    align-self: stretch;
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--color-success-text);
    font-size: 14px;
    font-family: var(--font-body);
}

.login-form {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-options__remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.login-footer__text {
    color: var(--color-text-mid);
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 22px;
}

.register-customer-subtitle {
    color: var(--color-text-mid);
    font: 400 16px/24px var(--font-sans);
}

.register-customer-consent {
    position: relative;
    align-items: start;
}

.register-customer-consent .checkbox-label {
    display: block;
    flex: 1;
    min-width: 0;
}

.register-customer-consent input[type="checkbox"] {
    margin-top: 3px;
}

.register-customer-consent .text-danger {
    position: absolute;
    top: 100%;
    left: 24px;
}

.register-customer-form .pwd-hints {
    pointer-events: none;
}

@media (max-width: 479px) {
    .auth-logo {
        top: 104px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 24px;
        line-height: 32px;
        white-space: nowrap;
    }

    .auth-content {
        align-items: center;
        box-sizing: border-box;
        min-height: 100vh;
    }

    .auth-content > .auth-card {
        width: 100%;
        max-width: 400px;
    }

    .login-card {
        width: 100%;
        max-width: 400px;
        padding: 0;
    }

    .login-card__content {
        gap: 24px;
    }
}

@media (min-width: 480px) and (max-width: 800px) {
    .auth-logo {
        left: 50%;
        transform: translateX(-50%);
    }
}

.register-start-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
       
}

.register-start-title--mobile {
    display: none;
}

@media (max-width: 479px) {
    body.register-start-layout {
        height: 100vh;
        overflow: hidden;
    }

    .register-start-layout .auth-content {
        box-sizing: border-box;
        flex: 1 1 0;
        height: 100vh;
        min-height: 0;
        padding: 160px 16px 32px;
    }

    .register-start-page {
        align-items: center;
        box-sizing: border-box;
        height: 100%;
        overflow-y: auto;
    }

    .register-start-card {
        width: 100%;
        max-width: 400px;
        justify-content: flex-start;
        gap: 0;
    }

    .register-start-card .step-title {
        max-width: 328px;
    }

    .register-start-title--desktop {
        display: none;
    }

    .register-start-title--mobile {
        display: block;
        white-space: nowrap;
    }

    .register-start-card .radio-card-group {
        width: 100%;
        flex-direction: column;
        gap: 16px;
        margin-top: 24px;
    }

    .register-start-card .radio-card {
        box-sizing: border-box;
        width: 100%;
        min-height: 100px;
        padding: 24px;
    }

    .register-start-actions {
        margin-top: auto;
        justify-content: stretch;
    }

    .register-start-actions .btn-primary {
        width: 100% !important;
    }
}

@media (min-width: 480px) and (max-width: 944px) {
    .register-start-layout .auth-logo {
        left: 50%;
        transform: translateX(-50%);
    }

    .register-start-layout .auth-content {
        box-sizing: border-box;
        padding: 0 32px;
    }

    .register-start-layout .register-start-page {
        width: 100%;
    }

    .register-start-layout .register-start-card {
        width: 100%;
        max-width: 824px;
    }

    .register-start-card .radio-card-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .register-start-card .radio-card {
        box-sizing: border-box;
        width: 100%;
    }

    .register-start-actions {
        width: min(100%, 400px);
        bottom: 20px;
        position: fixed;
        display: flex;
        justify-content: center;
    }
}

@media (min-width: 480px) and (max-width: 771px) {
    .register-start-card .radio-card-group {
        grid-template-columns: minmax(0, 400px);
        justify-content: center;
    }

    .register-start-actions {
        width: min(100%, 400px);
        bottom: 20px;
        position: fixed;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 499px) {
    .register-producer-layout .auth-logo {
        position: static;
        margin: 24px auto 0;
        transform: none;
        font-size: 24px;
        line-height: 32px;
    }

    .register-producer-layout .auth-content {
        align-items: stretch;
        box-sizing: border-box;
        flex: 0 0 auto;
        min-height: 0;
        padding: 48px 16px 32px;
    }

    .register-producer-layout .register-producer-page {
        width: 100%;
        min-height: 0;
        padding: 0;
        overflow: visible;
    }

    .register-producer-layout .register-producer-card {
        box-sizing: border-box;
        width: 100%;
        max-width: 328px;
        padding: 0;
        border: 0;
        border-radius: 0;
        gap: 40px;
    }

    .register-producer-layout .register-producer-form {
        display: flex;
        flex-direction: column;
        gap: 40px;
        width: 100%;
    }

    .register-producer-form > .reg-section,
    .register-producer-form > .reg-actions {
        margin-top: 0 !important;
    }

    .register-producer-form .reg-section {
        gap: 24px;
    }

    .register-producer-form .reg-field-row {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .register-producer-form .reg-field-row .input-wrapper,
    .register-producer-form .reg-field-row .input-wrapper--narrow {
        flex: 0 0 auto;
        width: 100%;
    }

    .register-producer-form .pwd-hints {
        position: static;
        box-sizing: border-box;
        width: 100%;
        margin-top: 4px;
    }

    .producer-consents {
        gap: 16px !important;
    }

    .producer-consent {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

    .producer-consent input[type="checkbox"] {
        margin-top: 1px;
    }

    .producer-consent .checkbox-label {
        display: block;
        flex: 1;
        min-width: 0;
        overflow-wrap: break-word;
    }

    .producer-consent__required {
        color: var(--color-error);
    }

    .register-producer-form .reg-actions {
        gap: 12px;
    }

    .register-producer-form .reg-actions > * {
        flex: 1;
    }

    
}

@media (min-width: 500px) and (max-width: 920px) {
    .register-producer-layout .auth-logo {
        left: 50%;
        transform: translateX(-50%);
    }

    .register-producer-layout .register-producer-page {
        padding: 100px 32px 48px;
    }

    .register-producer-layout .register-producer-card {
        box-sizing: border-box;
        padding: 48px clamp(32px, 8vw, 80px);
    }

    .register-producer-form .reg-field-row {
        gap: 16px;
    }
}

@media (min-width: 480px) and (max-width: 700px) {
    .register-producer-form .reg-field-row {
        flex-direction: column;
    }
}



.auth-page {
    width: 100%;
    background: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.reg-page {
    width: 100%;
    background: var(--color-bg);
    display: flex;
    justify-content: center;
    padding: 100px 120px 48px;
    box-sizing: border-box;
    overflow-y: auto;
}

.auth-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* ===== Step header (title + description + progress bar) ===== */

.step-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.step-title {
    color: var(--color-text-mid);
    font-size: 24px;
    font-family: var(--font-serif);    
    line-height: 32px;
}

.step-description {
    color: var(--color-text-muted);
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 22px;
}

.step-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--color-border-light);
    border-radius: var(--radius-xs);
    margin-top: 8px;
    overflow: hidden;
}

.step-progress-fill {
    height: 100%;
    background: var(--color-green-700);
    border-radius: var(--radius-xs);
    transition: width 0.3s ease;
}

.step-counter {
    color: var(--color-text-muted);
    font-size: 12px;
    font-family: var(--font-body);
}

/* ===== Role selection cards ===== */

.radio-card-group {
    display: flex;
    gap: 24px;
}

.radio-card {
    width: 400px;
    padding: 24px;
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    background: transparent;
    user-select: none;
}

    .radio-card:hover {
        background: var(--color-bg-subtle);
    }

    .radio-card.selected {
        border-color: var(--color-border-dark);        
    }

.radio-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.radio-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-card-title {
    color: var(--color-text-dark);
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 24px;
}

.radio-card-subtitle {
    color: var(--color-text-dark);
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 20px;
}

/* Radio circle inside card */
.radio-card-indicator {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-white);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;    
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.radio-card.selected .radio-card-indicator {
    border-color: var(--color-green-700);
    border-width: 6px;
}

.radio-card--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== Step form ===== */

.step-form {
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== Buttons ===== */

.btn-back {
    border: 1px solid var(--color-green-900);
    border-radius: var(--radius-btn);
    background: transparent;
    color: var(--color-text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    height: 48px;
    padding: 0px 24px;
    font-size: 16px;
    font-family: var(--font-sans);
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
}

.btn-back:hover {
    background: var(--color-green-900-a05);
    color: var(--color-text-dark);
    text-decoration: none;
}

.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* ===== Full-page registration form card ===== */

.reg-card {
    width: 100%;
    max-width: 1200px;
    padding: 48px 120px;
    background: var(--color-bg);
    border-radius: var(--radius-card-xl);
    border: 1px solid var(--color-border-medium);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.reg-intro {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reg-title {
    color: var(--color-text-dark);
    font-size: 32px;
    font-family: var(--font-serif);    
    line-height: 40px;
}

.reg-description {
    color: var(--color-text-dark);
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 24px;
}

.reg-description strong {
    font-weight: 600;
}

.reg-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reg-section-title {
    color: var(--color-text-dark);
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 24px;
}

.reg-field-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.reg-field-row .input-wrapper {
    flex: 1;
}

.reg-field-row .input-wrapper--narrow {
    flex: 0 0 120px;
}

.input-wrapper--pwd {
    position: relative;
}

.reg-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== Password hint chips ===== */

.pwd-hints {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: 2px 2px 10px var(--color-shadow-sm);
    z-index: 50;
}

.pwd-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-text-muted);
    color: var(--color-text-muted);
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 20px;
}

.pwd-hint--met {
    border-color: var(--color-green-deep);
    background: var(--color-green-100);
    color: var(--color-green-deep);
}

/* ===== ProducerComplete page ===== */

.complete-card {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 120px;
    padding: 120px 0 48px;
}

.complete-steps {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.complete-step {
    flex: 1;
    padding: 32px;
    background: var(--color-white);
    border-radius: var(--radius-card-lg);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.complete-step p {
    margin: 0;
    color: var(--color-text-dark);
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 24px;
}

.complete-step p strong {
    font-weight: 600;
}

.complete-step-number {
    width: 48px;
    height: 48px;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-green-500-hover);
    font-size: 24px;
    font-family: var(--font-serif);    
    line-height: 32px;
    flex-shrink: 0;
}

@media (max-width: 585px) {
    .producer-complete-layout .auth-logo {
        position: static;
        margin: 24px auto 0;
        transform: none;
        font-size: 24px;
        line-height: 32px;
    }

    .producer-complete-layout .auth-content {
        align-items: stretch;
        flex: 0 0 auto;
        min-height: 0;
        padding: 48px 16px 32px;
    }

    .producer-complete-layout .producer-complete-page {
        width: 100%;
        min-height: 0;
        padding: 0;
        overflow: visible;
    }

    .producer-complete-layout .producer-complete-card {
        box-sizing: border-box;
        width: 100%;
        max-width: 328px;
        align-items: stretch;
        gap: 24px;
        padding: 0;
    }

    .producer-complete-card > .reg-title {
        font-size: 32px;
        line-height: 40px;
    }

    .producer-complete-card .complete-steps {
        flex-direction: column;
        gap: 24px;
    }

    .producer-complete-card .complete-step {
        min-height: 182px;
        box-sizing: border-box;
        gap: 16px;
        padding: 24px;
        border-radius: var(--radius-card-lg);
    }

    .producer-complete-action,
    .producer-complete-action .btn-primary {
        width: 100%;
    }
}

@media (min-width: 586px) and (max-width: 900px) {
    .producer-complete-layout .auth-logo {
        left: 50%;
        transform: translateX(-50%);
    }

    .producer-complete-layout .producer-complete-page {
        padding: 100px 32px 48px;
    }

    .producer-complete-card {
        box-sizing: border-box;
        gap: 80px;
        padding: 80px 0 48px;
    }

    .producer-complete-card .complete-steps {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
}

@media (min-width: 772px) and (max-width: 900px) {
    .producer-complete-card .complete-steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ===== File drop zone ===== */

.file-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    border-radius: var(--radius-card);
    border: 2px solid var(--color-text-muted);
    color: var(--color-text-dark);
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 20px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.file-drop-zone:hover {
    border-color: var(--color-green-700);
}

