/* ============================================
   SPLIT-SCREEN AUTH STYLES - NO GLOW, CLEAN ICONS
   ============================================ */

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* ============================================
   SPLIT SCREEN CONTAINER - FIXED HEIGHT
   ============================================ */
.auth-split {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* ============================================
   LEFT PANEL - BRANDING SECTION (60%)
   ============================================ */
.auth-branding {
    flex: 0 0 60%;
    background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
    position: relative;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Hide scrollbar but keep functionality */
.auth-branding::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* Animated background */
.auth-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: rotateBg 40s linear infinite;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.branding-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    width: 100%;
    color: white;
}

/* Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.brand-logo i {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-logo h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Main heading */
.branding-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.branding-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Features list */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.feature-item:hover .feature-icon {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.feature-icon i {
    font-size: 1.2rem;
}

.feature-text {
    flex: 1;
}

.feature-text strong {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.feature-text span {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.3;
}

/* ============================================
   RIGHT PANEL - FORM SECTION (40%)
   ============================================ */
.auth-form-section {
    flex: 0 0 40%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    overflow-y: auto;
}

/* Hide scrollbar for cleaner look */
.auth-form-section::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.form-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* Form Card - blends with background */
.auth-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: transparent;
    padding: 0;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

::placeholder {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.form-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #151717;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 14px;
    color: #666;
}

/* Alert Messages */
.alert {
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert i {
    font-size: 13px;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-info {
    background: #dbeafe;
    color: #2563eb;
}

/* Form Elements */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flex-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flex-column > label {
    color: #151717;
    font-weight: 600;
    font-size: 14px;
}

/* Form Row for 2 columns */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 0;
}

/* Input Groups - NO GLOW, only border */
.inputForm {
    border: 1.5px solid #ecedec;
    border-radius: 10px;
    height: 50px;
    display: flex;
    align-items: center;
    padding-left: 12px;
    transition: border-color 0.2s ease-in-out;
    background: white;
    width: 100%;
    box-shadow: none;
    outline: none;
}

.inputForm svg {
    height: 20px;
    width: 20px;
    flex-shrink: 0;
}

.inputForm svg path,
.inputForm svg g {
    fill: #9ca3af;
    transition: fill 0.2s;
}

.input {
    margin-left: 10px;
    border-radius: 10px;
    border: none;
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-family: inherit;
    background: transparent;
    outline: none;
    box-shadow: none;
}

.input:focus {
    outline: none;
    box-shadow: none;
}

/* ONLY border changes - NO glow, NO shadow, NO inner border */
.inputForm:focus-within {
    border: 1.5px solid #2d79f3;
    box-shadow: none;
    outline: none;
}

.inputForm:focus-within svg path,
.inputForm:focus-within svg g {
    fill: #2d79f3;
}

/* Remove any default focus rings */
input:focus,
button:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: none;
}

/* Password Wrapper */
.password-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.password-wrapper .input {
    flex: 1;
    width: auto;
}

.toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    outline: none;
    box-shadow: none;
}

.toggle-password svg {
    height: 18px;
    width: 18px;
}

.toggle-password svg path {
    fill: #9ca3af;
    transition: fill 0.2s;
}

.toggle-password:hover svg path {
    fill: #2d79f3;
}

/* Password Strength */
.password-strength {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s, background 0.3s;
    border-radius: 4px;
}

.strength-text {
    font-size: 11px;
    color: #6b7280;
    min-width: 55px;
    font-weight: 500;
}

/* Form Options */
.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    margin: 12px 0 8px;
}

.flex-row > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flex-row > div > label {
    font-size: 14px;
    color: black;
    font-weight: 400;
}

.flex-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2d79f3;
}

.span {
    font-size: 14px;
    margin-left: 5px;
    color: #2d79f3;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

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

/* Terms Checkbox */
.terms {
    margin: 8px 0;
}

.terms .flex-row {
    margin: 0;
}

.terms .flex-row div {
    align-items: flex-start;
}

.terms .flex-row div label {
    line-height: 1.4;
    font-size: 13px;
}

/* Primary Button */
.button-submit {
    margin: 20px 0 10px 0;
    background-color: #151717;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    height: 50px;
    width: 100%;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.button-submit:hover {
    background-color: #252727;
}

/* Divider */
.p {
    text-align: center;
    color: black;
    font-size: 14px;
    margin: 5px 0;
}

.line {
    margin: 20px 0;
    position: relative;
}

.line::before,
.line::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #ecedec;
}

.line::before {
    left: 0;
}

.line::after {
    right: 0;
}

.line span {
    background: transparent;
    padding: 0 15px;
    color: #9ca3af;
    font-size: 12px;
}

/* Social Buttons */
.btn {
    margin-top: 10px;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    gap: 10px;
    border: 1px solid #ededef;
    background-color: white;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    font-size: 14px;
    font-family: inherit;
    color: #151717;
    text-decoration: none;
}

.btn:hover {
    border: 1px solid #2d79f3;
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer p {
    font-size: 14px;
    color: #666;
}

.auth-footer a {
    color: #2d79f3;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Desktop Small (1366x768 and similar) */
@media (max-width: 1366px) {
    .auth-branding {
        padding: 32px;
    }
    
    .brand-logo {
        margin-bottom: 32px;
    }
    
    .branding-content h1 {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }
    
    .branding-subtitle {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }
    
    .features-list {
        gap: 16px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-text strong {
        font-size: 0.85rem;
    }
    
    .feature-text span {
        font-size: 0.75rem;
    }
    
    .form-header {
        margin-bottom: 24px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .inputForm {
        height: 48px;
    }
    
    .button-submit,
    .btn {
        height: 48px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .auth-split {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    
    .auth-branding {
        flex: 0 0 55%;
        padding: 36px;
    }
    
    .auth-form-section {
        flex: 0 0 45%;
        padding: 32px 24px;
    }
    
    .branding-content h1 {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .auth-split {
        flex-direction: column-reverse;
        overflow-y: auto;
        height: auto;
    }
    
    .auth-branding {
        flex: 0 0 auto;
        min-height: auto;
        padding: 32px 24px;
    }
    
    .auth-form-section {
        flex: 0 0 auto;
        min-height: auto;
        padding: 32px 24px;
        overflow-y: visible;
    }
    
    .branding-content {
        max-width: 100%;
        text-align: center;
    }
    
    .brand-logo {
        justify-content: center;
        margin-bottom: 28px;
    }
    
    .branding-content h1 {
        font-size: 1.8rem;
    }
    
    .branding-subtitle {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    
    .features-list {
        gap: 16px;
    }
    
    .feature-item {
        justify-content: center;
        text-align: left;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .auth-branding {
        padding: 24px 20px;
    }
    
    .auth-form-section {
        padding: 24px 20px;
    }
    
    .brand-logo i {
        font-size: 1.8rem;
    }
    
    .brand-logo h2 {
        font-size: 1.3rem;
    }
    
    .branding-content h1 {
        font-size: 1.5rem;
    }
    
    .branding-subtitle {
        font-size: 0.8rem;
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
    }
    
    .feature-icon i {
        font-size: 1rem;
    }
    
    .feature-text strong {
        font-size: 0.8rem;
    }
    
    .feature-text span {
        font-size: 0.7rem;
    }
    
    .form-header h2 {
        font-size: 20px;
    }
    
    .form-header p {
        font-size: 12px;
    }
    
    .inputForm {
        height: 44px;
        padding-left: 12px;
    }
    
    .input {
        font-size: 13px;
    }
    
    .button-submit,
    .btn {
        height: 44px;
        font-size: 14px;
    }
    
    .flex-column > label {
        font-size: 13px;
    }
    
    .flex-row > div > label,
    .span {
        font-size: 13px;
    }
}