/* Modern Login Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: hsl(39, 100%, 50%);
    --primary-dark: hsl(39, 100%, 40%);
    --primary-light: hsl(28, 98%, 53%);
    --accent-orange: hsl(30, 100%, 60%);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --background: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Main Container */
.modern-login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: var(--background);
}

/* Left Side - Form Section */
.login-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--white);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    height: 48px;
    width: auto;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 167, 0, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.input-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.form-error {
    font-size: 0.875rem;
    color: var(--error);
    margin-top: 0.25rem;
}

/* Remember Me Section */
.remember-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.remember-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    appearance: none;
    background: var(--white);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.remember-checkbox:checked {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.remember-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.remember-text {
    font-size: 0.875rem;
    color: var(--text-primary);
    user-select: none;
}

.forgot-password {
    font-size: 0.875rem;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
}

.login-button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Register Section */
.register-section {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.register-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.register-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.register-link:hover {
    color: var(--primary-dark);
}

/* Right Side - Visual Section */
.login-visual-section {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-visual-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.visual-content {
    max-width: 400px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.visual-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: white;
}

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

.visual-logo {
    height: 40px;
    width: auto;
}

.visual-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.visual-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.visual-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-login-container {
        grid-template-columns: 1fr;
    }
    
    .login-visual-section {
        order: 1;
        min-height: 200px;
        padding: 1rem;
    }
    
    .visual-card {
        padding: 1rem;
    }
    
    .visual-title {
        font-size: 1.25rem;
    }
    
    .visual-subtitle {
        font-size: 0.875rem;
    }
    
    .visual-features {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .login-form-section {
        padding: 1rem;
    }
    
    .login-card {
        padding: 1rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 0.5rem;
    }
    
    .welcome-title {
        font-size: 1.25rem;
    }
    
    .form-input {
        padding: 0.625rem 0.875rem;
        padding-right: 2.25rem;
    }
    
    .login-button {
        padding: 0.625rem 1.25rem;
    }
}

/* WhatsApp Button Styles */
.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.my-float {
    margin-top: 16px;
}

/* Session Status */
.mb-4 {
    margin-bottom: 1rem;
}

/* Loading States */
.loading-content {
    display: none;
}

/* Show loading content when wire:loading is active */
[wire\:loading] .loading-content {
    display: flex !important;
}

/* Hide non-loading content when wire:loading is active */
[wire\:loading] [wire\:loading\.remove] {
    display: none !important;
}

/* Focus States */
*:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

.form-input:focus,
.remember-checkbox:focus,
.login-button:focus {
    outline: none;
}

.socials-row > a:hover {
    color: var(--primary);
    border: 1px solid var(--primary);
}

.divider {
    display: flex;
    flex-direction: row;
    color: var(--secondary);
    gap: 1rem;
    align-items: center;
}

.divider-line {
    width: 100%;
    height: 1px;
    background-color: var(--secondary);
    opacity: .2;
}

.form-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 3fr 2fr;
    max-width: 75rem;
}

.form-side {
    padding: 6.625rem 2rem 3rem 2rem;
    display: flex;
    justify-content: center;
    align-items: start;
    background-color: white;
}

.info-side {
    height: 100vh;
    padding: 10.5rem 0.75rem 0.5rem 0.75rem;
    color: #FEFEFE;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    background: linear-gradient(92.15deg, 
        var(--violet-light) 30.13%, 
        var(--info-side-background) 95.43%);
}

.info-side img {
    /* max-width: 24rem; */
    z-index: 1;
}

.welcome-message {
    max-width: 24rem;
}

.logo {
    display: block;
    height: 2.5rem;
    position: absolute;
    top: 1.125rem;
    left: 1.125rem;
}

.my-form {
    display: flex;
    flex-direction: column;
    justify-content: start;
    position: relative;
    gap: 1rem;
    max-width: 30rem;
    min-width: 18rem;
    width: 100%;
    padding: 3rem 2rem;
    height: fit-content;
    box-shadow: 
        rgba(100, 100, 111, 0.2)
        0px 7px 29px 0px;
}

.form-welcome {
    height: 5rem;
    width: 5rem;
    border-radius: 50%;
    object-fit: cover;
}

.form-welcome-row {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-welcome-row h1 {
    font-size: 1.6rem;
    color: var(--text-primary);
}

.my-form__button {
    background-color: var(--primary-orange);
    color: white;
    white-space: nowrap;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    line-height: 3.125rem;
    outline: none;
    font-size: 1.125rem;
    letter-spacing: .025em;
    text-decoration: none;
    cursor: pointer;
    font-weight: 800;
    min-height: 3.125rem;
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 5px 10px rgba(0,0,0,.15);
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
}

.my-form__actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: #FEFEFE;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: smaller;
}

.my-form__actions a {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
}

.my-form__actions a:first-child {
    text-align: left;
}


.my-form__actions a:last-child {
    text-align: right;
}

.my-form__actions a:hover {
    text-decoration: underline;
}

.my-form__row {
    display: flex;
    justify-content: space-between;
}

.my-form__signup {
    display: flex;
    justify-content: center;
}

.my-form__signup a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
    font-size: 1.125rem;
}

.my-form__signup a:hover {
    text-decoration: underline;
}

.text-field input {
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 500;
    max-width: 100%;
    width: 100%;
    height: 3rem;
    letter-spacing: .03rem;
    border: 1px solid var(--secondary);
    background-color: transparent;
    outline: none;
    transition: .25s;
    border-radius: 0.5rem;
    text-indent: 1.25rem;
    margin-top: 0.25rem;
}

.text-field label:focus-within  {
    color: var(--primary);
}

.text-field {
    position: relative;
}

.text-field svg {
    position: absolute;
    right: -0.125rem;
    bottom: -0.25rem;
    width: 2rem;
    height: 2rem;
    transform: translate(-50%,-50%);
    transform-origin: center;
}

.text-field input:focus {
    border: 1px solid var(--primary);
}


.text-field input:focus + svg {
    stroke: var(--primary);
} 

.text-field label {
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: .03rem;
    z-index: 10;
}

@media (max-width: 840px) {
    .form-wrapper {
        grid-template-columns: 1fr;
        height: 100vh;
    }
    
    .info-side {
        display: none;
        padding: 3rem 3rem 3rem 2rem;
    }
}
