/**
 * Business Login Styles
 * Prefijo: bus-login-
 * Optimizado para móviles y tablets
 */

.bus-login-container {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #065F28 0%, #0a7a35 100%);
    position: relative;
    overflow: hidden;
}

.bus-login-container::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(159, 235, 112, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.bus-login-container::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(159, 235, 112, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
    pointer-events: none;
}

/* Left Section - Hero */
.bus-login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: white;
    position: relative;
    z-index: 1;
}

.bus-login-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.bus-login-logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-green, #9feb70);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark, #065F28);
    flex-shrink: 0;
}

.bus-login-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.bus-login-hero {
    text-align: center;
    max-width: 600px;
}

.bus-login-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
    font-weight: 700;
}

.bus-login-hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Right Section - Form */
.bus-login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-light, #f5f5f5);
    position: relative;
    z-index: 1;
}

.bus-login-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl, 16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.bus-login-card-title {
    margin-bottom: 0.5rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text-dark, #1a1a1a);
}

.bus-login-card-subtitle {
    color: var(--text-gray, #666);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.bus-login-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark, #1a1a1a);
}

.bus-login-form-control {
    width: 100%;
    height: 50px;
    padding: 0 1rem;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: var(--radius-md, 8px);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.bus-login-form-control:focus {
    outline: none;
    border-color: var(--primary-dark, #065F28);
    box-shadow: 0 0 0 3px rgba(6, 95, 40, 0.1);
}

.bus-login-form-control::placeholder {
    color: var(--text-light, #999);
}

/* Password Toggle */
.bus-login-password-wrapper {
    position: relative;
}

.bus-login-password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray, #666);
    font-size: 1.2rem;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
}

.bus-login-password-toggle:hover {
    color: var(--primary-dark, #065F28);
}

/* Remember & Forgot */
.bus-login-remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.bus-login-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark, #1a1a1a);
}

.bus-login-checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.bus-login-forgot-link {
    color: var(--primary-dark, #065F28);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.bus-login-forgot-link:hover {
    text-decoration: underline;
}

/* Buttons */
.bus-login-btn {
    width: 100%;
    height: 50px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md, 8px);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bus-login-btn-primary {
    background: var(--primary-dark, #065F28);
    color: white;
    margin-bottom: 1.5rem;
}

.bus-login-btn-primary:hover:not(:disabled) {
    background: #0a7a35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 95, 40, 0.3);
}

.bus-login-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alert */
.bus-login-alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md, 8px);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bus-login-alert-danger {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
}

.bus-login-alert-hidden {
    display: none;
}

/* Signup Link */
.bus-login-signup-link {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-gray, #666);
    font-size: 0.95rem;
}

.bus-login-signup-link a {
    color: var(--primary-dark, #065F28);
    font-weight: 600;
    text-decoration: none;
}

.bus-login-signup-link a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes bus-login-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bus-login-fade-in {
    animation: bus-login-fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 968px) {
    .bus-login-container {
        flex-direction: column;
        background: white;
    }

    .bus-login-container::before,
    .bus-login-container::after {
        display: none;
    }

    .bus-login-left {
        padding: 1.25rem 1rem;
        min-height: auto;
        background: linear-gradient(135deg, #065F28 0%, #0a7a35 100%);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .bus-login-logo {
        margin-bottom: 0;
        gap: 0.75rem;
    }

    .bus-login-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .bus-login-logo-text {
        font-size: 1.3rem;
    }

    .bus-login-hero {
        display: none;
    }

    .bus-login-right {
        padding: 1rem;
        padding-top: 80px;
        min-height: 100vh;
        background: white;
        align-items: flex-start;
    }

    .bus-login-card {
        padding: 1.5rem 1rem;
        box-shadow: none;
        margin-top: 1rem;
    }

    .bus-login-card-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .bus-login-card-subtitle {
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
    }

    .bus-login-form-group {
        margin-bottom: 1rem;
    }

    .bus-login-form-control,
    .bus-login-btn {
        height: 48px;
    }

    .bus-login-btn-primary {
        margin-bottom: 1rem;
    }

    .bus-login-remember-row {
        margin-bottom: 1.25rem;
        font-size: 0.875rem;
    }

    .bus-login-signup-link {
        margin-top: 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .bus-login-left {
        padding: 1rem;
    }

    .bus-login-logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .bus-login-logo-text {
        font-size: 1.2rem;
    }

    .bus-login-right {
        padding: 0.875rem;
        padding-top: 70px;
    }

    .bus-login-card {
        padding: 1.25rem 0.875rem;
    }

    .bus-login-card-title {
        font-size: 1.375rem;
    }

    .bus-login-card-subtitle {
        font-size: 0.875rem;
    }

    .bus-login-form-group {
        margin-bottom: 0.875rem;
    }

    .bus-login-form-label {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }

    .bus-login-form-control,
    .bus-login-btn {
        height: 46px;
        font-size: 0.95rem;
    }

    .bus-login-remember-row {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .bus-login-checkbox-label,
    .bus-login-forgot-link {
        font-size: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .bus-login-left {
        padding: 1rem;
    }

    .bus-login-logo {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .bus-login-card {
        padding: 1.25rem;
    }

    .bus-login-form-control,
    .bus-login-btn {
        height: 46px;
    }
}

/* Landscape mode for small devices */
@media (max-height: 600px) and (orientation: landscape) {
    .bus-login-container {
        flex-direction: row;
    }

    .bus-login-left {
        min-height: 100vh;
        padding: 2rem 1.5rem;
    }

    .bus-login-logo {
        margin-bottom: 1.5rem;
    }

    .bus-login-hero h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .bus-login-hero p {
        font-size: 0.95rem;
    }

    .bus-login-card {
        padding: 2rem 1.5rem;
    }
}

/* Print styles */
@media print {
    .bus-login-container::before,
    .bus-login-container::after {
        display: none;
    }

    .bus-login-container {
        background: white;
    }
}
