/* Professional Split Auth Styles - Nutra Cure India */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #000000;
    --accent: #b49164;
    --accent-dark: #8e6f4a;
    --text-dark: #111111;
    --text-muted: #666666;
    --border: #eeeeee;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Resets handled by home.css */

body {
    background: #fff;
}

.auth-wrapper {
    display: flex;
    min-height: 80vh; /* More stable than fixed calc */
    overflow: hidden;
    background: #fff;
}

/* Image Side */
.auth-image-side {
    flex: 1.4;
    position: relative;
    display: none; /* Hidden on mobile */
}

@media (min-width: 1024px) {
    .auth-image-side {
        display: block;
    }
}

.auth-image-side img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No additional overlay content needed as handled by Blade img tag */

/* Form Side */
.auth-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 60px;
    background: #ffffff;
    overflow-y: auto;
    position: relative;
    border-left: 1px solid #f0f0f0;
}

.auth-form-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(180, 145, 100, 0.03) 0%, rgba(255, 255, 255, 0) 80%);
    pointer-events: none;
}

.auth-form-container {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 20px 0;
}

.auth-logo {
    margin-bottom: 30px;
}

.auth-logo img {
    height: 40px;
}

.auth-header {
    text-align: left;
    margin-bottom: 35px;
}

.auth-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    line-height: 1.1;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
}

/* Form Styling */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-block label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i,
.input-wrapper svg {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: var(--transition);
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 52px;
    background: #fdfdfd;
    border: 1.5px solid #ececec;
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition);
    font-weight: 500;
}

.input-wrapper.error-border input {
    border-color: #e74c3c;
    background: #fffcfb;
}

.input-wrapper.error-border i, 
.input-wrapper.error-border svg {
    color: #e74c3c;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(180, 145, 100, 0.08);
}

.input-wrapper input:focus + i,
.input-wrapper input:focus + svg,
.input-wrapper select:focus + i,
.input-wrapper select:focus + svg {
    color: var(--accent);
}

.input-wrapper select {
    width: 100%;
    padding: 12px 16px 12px 16px;
    background: #fdfdfd;
    border: 1.5px solid #ececec;
    border-radius: 12px;
    font-size: 15px;
    padding: 10px;
    color: var(--text-dark);
    transition: var(--transition);
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.input-wrapper.select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    transition: var(--transition);
    opacity: 0.7;
}

.input-wrapper.select-wrapper:focus-within::after {
    opacity: 1;
    transform: translateY(-50%) rotate(180deg);
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--accent);
}

.toggle-password svg {
    position: static !important;
    width: 20px !important;
    height: 20px !important;
}

.auth-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    cursor: pointer;
}

.forgot-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--accent);
    color: var(--border);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Loader */
.loader {
    width: 18px;
    height: 18px;
    border: 2px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Social Buttons */
.auth-separator {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.auth-separator::before, .auth-separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-separator:not(:empty)::before { margin-right: 15px; }
.auth-separator:not(:empty)::after { margin-left: 15px; }

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border: 1.5px solid #ececec;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.social-link:hover {
    background: #ffffff;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.06);
}

.social-link img {
    height: 20px;
}

.auth-foot {
    text-align: center;
    margin-top: 35px;
    font-size: 16px;
    color: var(--text-muted);
    padding: 20px;
    background: #fcfcfc;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
}

.auth-foot a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 800;
}

/* Registration Specific Styles */
@media (min-width: 1024px) {
    .auth-wrapper {
        flex-direction: row-reverse;
    }
}

.input-row {
    display: flex;
    gap: 15px;
}

.input-row .input-block {
    flex: 1;
}

.country-code-input {
    flex: 0 0 110px !important;
}

.gender-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.gender-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.gender-option input {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

@media (max-width: 768px) {
    .auth-wrapper {
        min-height: auto;
    }

    .auth-form-side {
        padding: 25px 10px !important; /* Reduced padding for compact look */
    }

    .auth-header {
        margin-bottom: 20px;
    }

    .auth-header h1 {
        font-size: 26px;
        letter-spacing: -0.5px;
    }

    .auth-header p {
        font-size: 14px;
    }

    .input-row {
        flex-direction: row; /* Kept side-by-side */
        gap: 10px;
    }

    .country-code-input {
        flex: 0 0 90px !important;
    }

    .gender-options {
        flex-direction: row; /* Kept side-by-side */
        gap: 15px;
    }

    .auth-foot {
        margin-top: 20px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .auth-header h1 {
        font-size: 24px;
    }
    
    .social-links {
        flex-direction: row;
        gap: 10px;
    }

    .social-link {
        padding: 12px;
        font-size: 14px;
        flex: 1;
    }
}
