/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Teal/Dark Blue Theme */
    --primary: 186 70% 45%;
    --primary-foreground: 0 0% 100%;
    --background: 0 0% 100%;
    --foreground: 222 47% 11%;
    --muted: 210 40% 96%;
    --muted-foreground: 215 16% 47%;
    --border: 214 32% 91%;
    --input: 214 32% 91%;
    --ring: 186 70% 45%;
}

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

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

.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-section {
    flex: 1;
    position: relative;
    overflow: hidden;
}

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

/* Logo */
.logo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Login Form */
.login-form {
    width: 100%;
    max-width: 28rem;
}

.title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.form-row.checkbox-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    min-height: 2.25rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsla(var(--ring), 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.25rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
}

.btn-primary:active {
    background: hsl(var(--primary) / 0.8);
}

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

.btn-outline:hover {
    background: hsl(var(--muted));
}

.link-button {
    background: none;
    border: none;
    color: hsl(var(--primary));
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.link-button:hover {
    background: hsl(var(--muted));
}

/* Text Utilities */
.text-center {
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    display: none;
}

.error-message.visible {
    display: block;
}

.hidden {
    display: none !important;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: hsl(var(--background));
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 48rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}

/* Stepper */
.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.step-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    transition: all 0.3s;
}

.step.active .step-circle,
.step.completed .step-circle {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.step.active .step-label,
.step.completed .step-label {
    color: hsl(var(--foreground));
}

.step-line {
    height: 2px;
    flex: 1;
    background: hsl(var(--muted));
    margin: 0 0.5rem;
    transition: all 0.3s;
}

.step.completed + .step-line {
    background: hsl(var(--primary));
}

/* Form Steps */
.form-step {
    display: none;
}

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

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
    gap: 1rem;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.plan-card {
    padding: 1.5rem;
    border: 2px solid hsl(var(--border));
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-card:hover {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.05);
}

.plan-card.selected {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.05);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.plan-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.plan-check {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    display: none;
    align-items: center;
    justify-content: center;
}

.plan-card.selected .plan-check {
    display: flex;
}

.plan-features {
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.plan-features li svg {
    color: hsl(var(--primary));
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .image-section {
        display: none;
    }
}

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