@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

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

html, body {
    height: 100%;
    font-family: 'Outfit', sans-serif;
    background: #FFFFFF;
    color: #111827;
    overflow: hidden;
}

.auth-layout {
    display: flex;
    min-height: 100vh;
    flex-direction: row-reverse; /* Put form on the right */
}

/* Form Area (Now on the Right) */
.auth-form-area {
    width: 40%;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 4rem;
    position: relative;
    z-index: 10;
}

.form-wrapper {
    width: 100%;
    max-width: 360px;
}

/* Typography */
.heading-main {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
    letter-spacing: -0.02em;
}

.text-muted {
    color: #6B7280;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper svg {
    position: absolute;
    left: 1.4rem;
    width: 20px;
    height: 20px;
    color: #9CA3AF;
    transition: color 0.2s ease;
}

.input-icon-wrapper:focus-within svg {
    color: #111827;
}

.form-input {
    width: 100%;
    background: #F3F4F6;
    border: 1px solid transparent;
    color: #111827;
    padding: 1.1rem 1.1rem 1.1rem 3.6rem; /* padding-left for icon */
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    background: #FFFFFF;
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.05);
}

.form-input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

.invalid-feedback {
    color: #EF4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

.forgot-password {
    color: #2563EB;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: right;
    display: block;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1.1rem;
    background: #111827;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Outfit', sans-serif;
}

.btn-submit:hover {
    background: #1F2937;
    transform: translateY(-1px);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: #9CA3AF;
    font-size: 0.9rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E5E7EB;
}

.divider::before { margin-right: 1rem; }
.divider::after { margin-left: 1rem; }

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-social:hover {
    background: #F9FAFB;
}

.signup-link {
    text-align: center;
    color: #6B7280;
    font-size: 0.95rem;
}

.signup-link a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 500;
}

/* Visual Area (Now on the Left) */
.auth-visual-area {
    width: 60%;
    background: #E2E8F0; /* Darker slate-gray for much better contrast */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.brand-logo {
    position: absolute;
    top: 2.5rem;
    left: 4rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-logo svg {
    width: 24px;
    height: 24px;
    color: #2563EB;
}

.visual-cards-container {
    position: relative;
    height: 400px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 3rem;
}

.v-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04), inset 0 2px 4px rgba(255,255,255,0.5);
    padding: 1.5rem;
}

.v-card-1 {
    top: 0;
    left: 20px;
    width: 200px;
}
.v-card-2 {
    bottom: 0;
    left: 0;
    width: 240px;
    border: 1px dashed #E2E8F0;
    box-shadow: none;
}
.v-card-3 {
    top: 100px;
    right: 20px;
    width: 180px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.v-title {
    font-size: 0.75rem;
    color: #94A3B8;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.v-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2563EB;
}

.v-icon-box {
    width: 40px;
    height: 40px;
    background: #EFF6FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3B82F6;
    margin-bottom: 1rem;
}

.visual-text-block {
    max-width: 460px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.visual-text-block h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.visual-text-block p {
    color: #6B7280;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Inline Style Refactor Classes */
.auth-copyright {
    color: #9CA3AF;
    font-size: 0.85rem;
    margin-top: 4rem;
    text-align: center;
}

.v-value-sm {
    font-size: 1.25rem;
}

.v-card-flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.v-card-flex-padded {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
}

.v-icon-primary-rounded {
    border-radius: 50%;
    background: #2563EB;
    color: white;
}

.v-title-dark {
    font-weight: 500;
    color: #111827;
    margin-bottom: 5px;
}

.v-subtitle-light {
    font-size: 0.8rem;
    color: #9CA3AF;
}

.v-icon-success-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
}

.v-title-lg-bold {
    font-weight: 600;
    font-size: 1.1rem;
    color: #111827;
}

.v-subtitle-dark-mt {
    font-size: 0.8rem;
    color: #6B7280;
    margin-top: 5px;
}

@media (max-width: 900px) {
    .auth-layout { flex-direction: column; }
    .auth-visual-area { display: none; }
    .auth-form-area { width: 100%; padding: 2rem; }
}
