/* Base styles and reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #000000;
    --foreground: #ffffff;
    --muted-background: #111111;
    --muted-foreground: #aaaaaa;
    --border: #333333;
    --primary: #ffffff;
    --primary-foreground: #000000;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    line-height: 1.5;
}

a {
    color: var(--foreground);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Layout */
.container {
    display: grid;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    .container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Form column */
.form-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .form-column {
        padding: 2.5rem;
    }
}

/* Header and logo */
.header {
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .header {
        justify-content: flex-start;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 0.375rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.logo-icon svg {
    width: 1rem;
    height: 1rem;
}

/* Form container */
.form-container {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 20rem;
}

/* Form header */
.form-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.form-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.form-header p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-wrap: balance;
}

/* Form fields */
.form-fields {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.password-header {
    display: flex;
    align-items: center;
}

.forgot-password {
    margin-left: auto;
    font-size: 0.875rem;
}

label {
    font-size: 0.875rem;
    font-weight: 500;
}

input {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    width: 100%;
}

input:focus {
    outline: 2px solid var(--foreground);
    outline-offset: 2px;
}

/* Buttons */
.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    width: 100%;
    height: 2.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.divider::after {
    content: "";
    position: absolute;
    inset: 0;
    top: 50%;
    z-index: 0;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border);
}

.divider span {
    position: relative;
    z-index: 10;
    background-color: var(--background);
    padding: 0 0.5rem;
}

/* Signup link */
.signup-link {
    text-align: center;
    font-size: 0.875rem;
}

/* Image column */
.image-column {
    position: relative;
    display: none;
    background-color: var(--muted-background);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .image-column {
        display: flex;
        flex-direction: column;
        padding: 2.5rem;
    }
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.image-column img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.image-content {
    position: relative;
    z-index: 2;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo svg {
    width: 20px;
    height: 20px;
    color: var(--primary-foreground);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.features-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 1.25rem;
    transition: background 0.2s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.feature-icon svg {
    width: 16px;
    height: 16px;
    color: white;
}

.feature-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.feature-content p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.testimonial-section {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 1.25rem;
}

.testimonial-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
}

.author-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.author-info p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.form-container {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.form-container::-webkit-scrollbar {
    width: 6px;
}

.form-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.form-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.form-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.form-fields {
    display: grid;
    gap: 1rem;
    width: 100%;
}

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

.form-group {
    width: 100%;
}

.form-group input,
.form-group select {
    width: 100%;
    box-sizing: border-box;
}

.image-column {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.signup-link {
    margin-top: 1rem;
}

.detail-desc {
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }

    .image-column {
        display: none;
    }

    .form-column {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .header {
        display: none !important;
    }

    .form-container {
        padding: 1rem;
        max-height: none;
    }

    .step-indicator {
        margin: 1.5rem 0;
        padding: 0 0.5rem;
    }

    .step {
        max-width: 80px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .form-header h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .form-header p {
        font-size: 0.9rem;
        text-align: center;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .form-navigation button {
        width: 100%;
    }

    .signup-link {
        text-align: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .form-column {
        padding: 0.5rem;
    }

    .form-container {
        padding: 0.5rem;
    }

    .step-indicator {
        margin: 1rem 0;
        padding: 0 0.25rem;
    }

    .step {
        max-width: 60px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .form-header h1 {
        font-size: 1.3rem;
    }

    .form-header p {
        font-size: 0.8rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .checkbox-label {
        font-size: 0.8rem;
        gap: 0.25rem;
    }

    .checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .checkbox-label a {
        display: inline;
        word-break: break-word;
    }
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
    padding: 0 1rem;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #333333;
    transform: translateY(-50%);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 120px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: black;
    border: 2px solid #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6d7070;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: white;
    border-color: white;
    color: black;
}

.step.completed .step-number {
    background: white;
    border-color: white;
    color: black;
}

.step-label {
    font-size: 0.85rem;
    color: #6d7070;
    text-align: center;
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: white;
    font-weight: 500;
}

.step.completed .step-label {
    color: white;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

select {
    width: 100%;
    padding: 0.6rem;
    border-radius: 4px;
    font-size: .9rem;
    background-color: black;
    color: #6d7070;
    border: 1px solid #333333;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

select:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

select:hover {
    border-color: white;
}

select option {
    padding: 0.75rem;
    font-size: .9rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6d7070;
    width: 100%;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #333333;
    border-radius: 4px;
    background-color: black;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label span {
    flex: 1;
    word-break: break-word;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: white;
    border-color: white;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:hover {
    border-color: white;
}

.checkbox-label a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.checkbox-label a:hover {
    text-decoration: underline;
}



.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6d7070;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.back-home-btn:hover {
    color: white;
}

.back-home-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 480px) {
    .back-home-btn {
        font-size: 0.8rem;
    }

    .back-home-btn svg {
        width: 18px;
        height: 18px;
    }
}


.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6d7070;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.back-home-btn:hover {
    color: white;
}

.back-home-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 480px) {
    .back-home-btn {
        font-size: 0.8rem;
    }

    .back-home-btn svg {
        width: 18px;
        height: 18px;
    }
}