/* LeadWizo Login Page Styles */

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.leadwizo-auth-page {
    min-height: 100vh;
    max-height: 100vh;
    background-color: #09090b;
    position: relative;
    overflow: hidden;
    width: 100vw;
    max-width: 100%;
}

/* Background gradient effect */
.auth-bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.auth-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    height: 100vh;
    overflow: hidden;
}

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

/* Left side - Branding */
.auth-left {
    display: none;
    background-color: rgba(24, 24, 31, 0.5);
    backdrop-filter: blur(10px);
    padding: 4rem 3rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .auth-left {
        display: flex;
    }
}

.auth-branding {
    max-width: 500px;
}

.brand-logo {
    margin-bottom: 2rem;
}

.brand-logo a {
    text-decoration: none;
    display: inline-block;
}

.logo-with-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-direction: row;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    padding: 6px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.brand-text {
    font-size: 1.875rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.brand-headline {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.brand-accent {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.brand-description {
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1.6;
}

/* Right side - Form */
.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 100vh;
}

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

/* Mobile logo */
.mobile-logo {
    display: block;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .mobile-logo {
        display: none;
    }
}

.auth-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #9ca3af;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Social login buttons */
.social-login-container {
    margin-bottom: 1.5rem;
}

.btn-google,
.nsl-button {
    width: 100%;
    height: 48px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.btn-google:hover,
.nsl-button:hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.plugin-notice {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #3f3f46;
}

.divider-text {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* WordPress login form styling */
.wp-login-form {
    margin-bottom: 1rem;
}

.wp-login-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wp-login-form label {
    color: #d1d5db;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.wp-login-form input[type="text"],
.wp-login-form input[type="password"] {
    width: 100%;
    height: 48px;
    background-color: #1f2832;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0 1rem;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.wp-login-form input[type="text"]:focus,
.wp-login-form input[type="password"]:focus {
    outline: none;
    border-color: #6366f1;
    background-color: #252f3a;
}

.wp-login-form input[type="text"]::placeholder,
.wp-login-form input[type="password"]::placeholder {
    color: #9ca3af;
}

/* Remember me checkbox */
.login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-remember label {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

.login-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
}

/* Submit button */
.wp-login-form input[type="submit"] {
    width: 100%;
    height: 48px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.wp-login-form input[type="submit"]:hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
}

/* Auth links */
.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.auth-link {
    color: #9ca3af;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #ffffff;
}

.auth-separator {
    color: #3f3f46;
}

/* Terms */
.auth-terms {
    color: #9ca3af;
    font-size: 0.875rem;
    text-align: center;
    line-height: 1.5;
}

.auth-terms a {
    color: #9ca3af;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.auth-terms a:hover {
    color: #ffffff;
}

/* Nextend Social Login button overrides - FORCE FULL WIDTH */
.nsl-container {
    margin: 0 !important;
    width: 100% !important;
}

.nsl-container-block {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
}

.nsl-container .nsl-button,
.nsl-container .nsl-button-google,
a.nsl-button-google {
    background-color: #ffffff !important;
    color: #000000 !important;
    height: 48px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
}

.nsl-container .nsl-button:hover,
.nsl-container .nsl-button-google:hover,
a.nsl-button-google:hover {
    background-color: #f3f4f6 !important;
}

/* Center the Google icon and text properly with exact spacing */
.nsl-button-google .nsl-button-svg-container,
.nsl-button .nsl-button-svg-container {
    margin: 0 10px 0 0 !important;
    padding: 0 !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.nsl-button-google .nsl-button-label-container,
.nsl-button .nsl-button-label-container {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* Force center alignment of button content */
.nsl-button-google > div,
.nsl-button > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .auth-right {
        padding: 1.5rem 1rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .brand-headline {
        font-size: 1.5rem;
    }
}

/* Remove default WordPress form styles */
.wp-login-form p {
    margin: 0;
}

.wp-login-form .login-username,
.wp-login-form .login-password {
    margin-bottom: 1rem;
}

.wp-login-form .login-submit {
    margin-top: 0.5rem;
}